From 451ceec4dd7de984ebcd332286c47d955c6c9d67 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Sat, 20 Jul 2024 17:42:14 -0700 Subject: [PATCH] Fix afind command afind "*.foo" didn't work because "*.foo" got expanded inside afind Change-Id: Ia479ed6e50e64fe2ffdf1983050a6da91d6a06f0 --- bin/afind | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/afind b/bin/afind index 080f06a3b..f5b8319b2 100755 --- a/bin/afind +++ b/bin/afind @@ -14,6 +14,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +# prevent glob expansion in this script +set -f + dir=${1:-.} shift