added failglob and LC_ALL

This commit is contained in:
Ranomier 2024-11-27 01:17:30 +01:00
parent 88b0833a27
commit 5adf91302a
10 changed files with 33 additions and 10 deletions

View file

@ -1,5 +1,7 @@
#!/usr/bin/env bash
# docstring=searches the nix store with find
set -E -o pipefail
shopt -s failglob
export LC_ALL=C.UTF8
find /nix/store/ -maxdepth 1 -iname '*'"$@"'*'