I have the following function f() { find . -name "$1"}
which is just a handy shortcut for finding the file with a name. If I execute find . -name "*.gradle"
in the terminal I get:
./.gradle
./app/build.gradle
./build.gradle
./dependencies.gradle
./settings.gradle
./wearable/build.gradle
If I execute f *.gradle
in the terminal I get:
./app/build.gradle
./build.gradle
./wearable/build.gradle
The first result is the correct one and also the wanted one. Why am I getting though this 'wrong' result when using my function even though the content is the same? Did I inject the $1
parameter wrongly?