bash-completion icon indicating copy to clipboard operation
bash-completion copied to clipboard

sh <name> should always expand "file", but not "file.txt" etc.

Open jidanni opened this issue 5 years ago • 5 comments
trafficstars

# 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.

jidanni avatar Aug 18 '20 16:08 jidanni

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.

scop avatar Aug 31 '20 19:08 scop

Well only about 0% of shell scripts end in .bash or .sh .

jidanni avatar May 21 '24 08:05 jidanni

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 avatar May 21 '24 08:05 akinomyoga

@akinomyoga indeed, that is a super duper solution. Do please reopen this bug so folks can get to work on it. Thanks.

jidanni avatar May 21 '24 08:05 jidanni

Sure.

akinomyoga avatar May 21 '24 08:05 akinomyoga