Skip to content

Commit 6a5ad23

Browse files
committed
update for modern GNU coreutils
Adjust for changes in GNU coreutils. Valid as of coreutils 9.5 (Mar 2024). Add completions for: base32, basenc, cksum, comm, numfmt, readlink, realpath, shred, shuf, stat, sync Adjust completions for: chgrp: add --from dd: remove deprecated *_bytes flags
1 parent acc4453 commit 6a5ad23

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

bash_completion

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3150,11 +3150,12 @@ _comp_complete_longopt()
31503150
}
31513151
# makeinfo and texi2dvi are defined elsewhere.
31523152
complete -F _comp_complete_longopt \
3153-
a2ps awk base64 bash bc bison cat chroot colordiff cp \
3153+
a2ps awk base{32,64,nc} bash bc bison cat chroot colordiff comm cp \
31543154
csplit cut date df diff dir du enscript expand fmt fold gperf \
31553155
grep grub head irb ld ldd less ln ls m4 mkdir mkfifo mknod \
3156-
mv netstat nl nm objcopy objdump od paste pr ptx readelf rm rmdir \
3157-
sed seq shar sort split strip sum tac tail tee \
3156+
mv netstat nl nm numfmt objcopy objdump od paste pr ptx readelf \
3157+
readlink realpath rm rmdir sed seq shar shred \
3158+
shuf sort split stat strip sum sync tac tail tee \
31583159
texindex touch tr uname unexpand uniq units vdir wc who
31593160
31603161
# @since 2.12

completions/chgrp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ _comp_cmd_chgrp()
2020
for w in "${words[@]}"; do
2121
[[ $w == -@(R|-recursive) ]] && opts="-H -L -P" && break
2222
done
23-
_comp_compgen -- -W '-c -h -f -R -v --changes --dereference
23+
_comp_compgen -- -W '-c -h -f -R -v --changes --dereference --from
2424
--no-dereference --silent --quiet --reference --recursive --verbose
2525
--help --version $opts'
2626
return

completions/dd

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ _comp_cmd_dd()
1818
;;
1919
iflag=* | oflag=*)
2020
_comp_compgen -c "${cur#*=}" -- -W 'append direct directory dsync
21-
sync fullblock nonblock noatime nocache noctty nofollow
22-
count_bytes skip_bytes seek_bytes'
21+
sync fullblock nonblock noatime nocache noctty nofollow'
2322
return
2423
;;
2524
status=*)

completions/sha256sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ _comp_cmd_sha256sum()
3333
_comp_compgen -v files filedir &&
3434
_comp_compgen -- -X "*.$sumtype" -W '"${files[@]}"'
3535
} &&
36-
complete -F _comp_cmd_sha256sum b2sum md5sum sha{,1,224,256,384,512}sum
36+
complete -F _comp_cmd_sha256sum b2sum cksum md5sum \
37+
sha{,1,224,256,384,512}sum
3738

3839
# ex: filetype=sh

0 commit comments

Comments
 (0)