comparison sbin/fzfs @ 533:07071afd9ae5

Reset some variables in the process environment at loading time: GREP_OPTIONS and PATH_FSTAB. LC_ALL (and LANG and friends) are left alone currently.
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 05 Sep 2024 22:06:51 +0200
parents 703e9f357339
children 62cd970aea9c
comparison
equal deleted inserted replaced
532:c615279bb797 533:07071afd9ae5
320 /sbin/umount "${_mp}" || return 1 320 /sbin/umount "${_mp}" || return 1
321 fi 321 fi
322 done 322 done
323 else 323 else
324 /sbin/mount -t zfs -p \ 324 /sbin/mount -t zfs -p \
325 | LC_ALL=C GREP_OPTIONS="" /usr/bin/egrep "^${_dsname}(/|\s)" \ 325 | LC_ALL=C /usr/bin/egrep "^${_dsname}(/|\s)" \
326 | LC_ALL=C /usr/bin/sort -n -r \ 326 | LC_ALL=C /usr/bin/sort -n -r \
327 | while IFS=' '$'\t' read -r _name _mp _rest ; do 327 | while IFS=' '$'\t' read -r _name _mp _rest ; do
328 if checkyes _opt_dry_run ; then 328 if checkyes _opt_dry_run ; then
329 echo "Would umount ${_name} from ${_mp}" 329 echo "Would umount ${_name} from ${_mp}"
330 else 330 else