bash-completion
bash-completion copied to clipboard
sh <name> should always expand "file", but not "file.txt" etc.
# sh -x bin/open...
This should not need *.sh after its name to expand, or even need execute r-xr-xr-x permission in this case.
Back in shell script school we were never taught we needed any "." in script names.
One could say a similar thing about pretty much all our completions. We do however choose to restrict filename completions based on common "suffixes" for the context almost everywhere, including sh. Users may choose otherwise if they like, see the first FAQ item in README.md.
Well only about 0% of shell scripts end in .bash or .sh .
Maybe we can generate filenames ending with .bash and .sh plus files without the filename extension. We can exclude the filenames with other extensions such as .txt, .log, etc.
@akinomyoga indeed, that is a super duper solution. Do please reopen this bug so folks can get to work on it. Thanks.
Sure.