I have created this bash function to recursively find a file.
ff() {
find . -type f -name '$1'
}
However, it returns no results. When I execute the command directly on the commandline, I do get results. I am not sure why it behaves differently, as shown below.
mattr@kiva-mattr:~/src/protocol$ ff *.so
mattr@kiva-mattr:~/src/protocol$ find . -type f -name '*.so'
./identity_wallet_service/resources/libindystrgpostgres.so
Why does my function not work as expected? I am using MacOS and bash shell.
Thnx Matt