Skip to content

Commit f95f0af

Browse files
committed
bash/nlines-completion.bash: syntax error fix for Redhat/ Mac OSX systems in bash completion
1 parent 0954bd5 commit f95f0af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash/nlines-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function _pathopt(){
134134
_filedir;
135135
return
136136
;;
137-
--+([-a-z0-9_]))
137+
--+[-a-z0-9_])
138138
local argtype=$( LC_ALL=C $1 --help 2>&1 | command sed -ne "s|.*$prev\[\{0,1\}=[<[]\{0,1\}\([-A-Za-z0-9_]\{1,\}\).*|\1|p" );
139139
case ${argtype,,} in
140140
*dir*)

0 commit comments

Comments
 (0)