Skip to content

Commit 2c84035

Browse files
author
Damien Nadé
committed
argsparse-completion.sh: replaced $(cat) by builtin $(< /dev/stdin)
1 parent 73c322f commit 2c84035

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

argsparse-completion.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ _argsparse_complete() {
9898
local cur prev words cword split
9999
_init_completion -s || return
100100
local complete_type complete_values
101-
{ read complete_type ; complete_values=$(cat) ;} \
101+
{ read complete_type ; complete_values=$(< /dev/stdin) ;} \
102102
< <(__argsparse_complete "${words[0]}")
103103
COMPREPLY=( $(compgen "$complete_type" "$complete_values" -- "$cur" ) )
104104
}

0 commit comments

Comments
 (0)