summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
author Joe Onorato <joeo@google.com> 2024-07-20 17:42:14 -0700
committer Joe Onorato <joeo@google.com> 2024-07-20 17:46:15 -0700
commit451ceec4dd7de984ebcd332286c47d955c6c9d67 (patch)
tree0bd228b064f0df4a22e83762470ff8bfb3c9ba61 /bin
parenta5d171773d4d082a201778a4cadbc6938de0f608 (diff)
Fix afind command
afind "*.foo" didn't work because "*.foo" got expanded inside afind Change-Id: Ia479ed6e50e64fe2ffdf1983050a6da91d6a06f0
Diffstat (limited to 'bin')
-rwxr-xr-xbin/afind3
1 files changed, 3 insertions, 0 deletions
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