Bug#919833: 90% of shell scripts probably don't have a .sh extension

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#919833: 90% of shell scripts probably don't have a .sh extension

積丹尼 Dan Jacobson
Package: bash-completion
Version: 1:2.8-5
Severity: wishlist
File: /usr/share/bash-completion/completions/sh

I think 90% of shell scripts don't have a .sh extension.
Therefore
$ sh anyf<TAB>
should still complete to
$ sh anyfile
Thanks.

Reply | Threaded
Open this post in threaded view
|

Bug#919833: 90% of shell scripts probably don't have a .sh extension

Gabriel F. T. Gomes-2
On Sun, Jan 20 2019, 積丹尼 Dan Jacobson wrote:

> Package: bash-completion
> Version: 1:2.8-5
> Severity: wishlist
> File: /usr/share/bash-completion/completions/sh
>
> I think 90% of shell scripts don't have a .sh extension.
> Therefore
> $ sh anyf<TAB>
> should still complete to
> $ sh anyfile

You could be right (specially since bash completes any filename),
however, where did you get this statistic from?

Reply | Threaded
Open this post in threaded view
|

Bug#919833: 90% of shell scripts probably don't have a .sh extension

積丹尼 Dan Jacobson
In reply to this post by 積丹尼 Dan Jacobson
>>>>> "GFTG" == Gabriel F T Gomes <[hidden email]> writes:

GFTG> You could be right (specially since bash completes any filename),
GFTG> however, where did you get this statistic from?

OK, maybe even less,
$ file /usr/bin/*|grep -c shell\ script
194
$ ls /usr/bin/*.sh
/usr/bin/gettext.sh

But that's just my system.

Reply | Threaded
Open this post in threaded view
|

Bug#919833: 90% of shell scripts probably don't have a .sh extension

Gabriel F. T. Gomes-2
On Wed, Mar 13 2019, 積丹尼 Dan Jacobson wrote:
>
> OK, maybe even less,
> $ file /usr/bin/*|grep -c shell\ script
> 194
> $ ls /usr/bin/*.sh
> /usr/bin/gettext.sh

This only means that a very tiny fraction of shell scripts *inside*
/usr/bin have .sh extension.  Anyhow, thanks for the clarification.

I'll take your suggestion upstream and see what it has to say about it.