[Bash-completion-devel] [bash-completion-Bugs][313328] Regression: "sh filename" completion works only if filename ends in .sh

bash-completion-bugs at alioth.debian.org bash-completion-bugs at alioth.debian.org
Sun Sep 4 08:30:01 UTC 2011


Bugs item #313328, was opened at 2011-09-04 08:30
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313328&group_id=100114

Status: Open
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: Regression: "sh filename" completion works only if filename ends in .sh 
Distribution: --Distribution-Agnostic--
Originally reported in: None
Milestone: None
Status: None
Original bug number: 


Initial Comment:
In bash-completion 1.3, after the "sh" command, only folders and files ending with .sh are completed.
But often there are scripts with no extension, so it would be desirable to suggest all files as possible expansions. This worked in a previous version of bash-completion (but I'm not sure which one, maybe 1.2).

This bug has been reported here:
http://bugzilla.novell.com/show_bug.cgi?id=715865

Steps to reproduce:

cat <<EOF >my_script
#!/bin/sh
echo Hello world
EOF
chmod +x my_script
sh my_<<TAB>>


Expected behaviour:
"my_" is completed to "my_script"

Current behaviour:
Nothing happens.


----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=313328&group_id=100114



More information about the Bash-completion-devel mailing list