Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/fzfs @ 537:62cd970aea9c
Replace the use of "deprecated" egrep calls with "grep -E"
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 09 Sep 2024 14:28:55 +0200 |
| parents | 07071afd9ae5 |
| children | 9f8f3e9b3d84 |
comparison
equal
deleted
inserted
replaced
| 536:b0148ccbc459 | 537:62cd970aea9c |
|---|---|
| 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 /usr/bin/egrep "^${_dsname}(/|\s)" \ | 325 | LC_ALL=C /usr/bin/grep -E "^${_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 |
