Re: [opensuse] opensuse 13.2 sh command broken
On 11/12/2014 01:56 PM, Mark Hounschell wrote:
On 11/12/2014 04:48 PM, John Andersen wrote:
On 11/12/2014 01:42 PM, Mark Hounschell wrote:
For as long as I can remember the sh command allowed for command completion via the tab key. As of 13.2 it no longer does. Who broke it?
Mark
Probably You, since it works for me. ;-) If the portion you keyed in before hitting tab is not unique, it will show possibles upon the next tab key. If you keyed something that was unique enough, the first tab will show the full command.
Sh is nothing but a link to bash. There exists more than one such link, one in /bin and one in /usr/bin.
Why are you sending email to me and not the list?
People who want help should not be so touchy.
Anyway, I broke nothing. I just did a fresh install and it does not work. Normal command completion works fine as long as it is executable. When "sh part_of_pathname" completion doesn't work on any of the 3 13.2 boxes I have.
Mark
While sitting in bash I type: sh /etc/s and then I hit tab. Nothing happens until the next tab.
jsa@poulsbo:~> sh /etc/s samba/ selinux/ slp.reg.d/ sound/ susehelp.d/ sane.d/ sensors.d/ smartd_warning.sh ssh/ sysconfig/ sasl2/ sgml/ snapper/ ssl/ sysctl.d/ security/ skel/ snmp/ sudoers.d/ systemd/ jsa@poulsbo:~> sh /etc/s
While sitting in SH (which is bash in disguise) I type /etc/s and hit tab Again nothing happens on the first tab, the second tab shows a list
sh-4.2$ /etc/s samba/ selinux/ slp.reg.d/ sound/ susehelp.d/ sane.d/ sensors.d/ smartd_warning.sh ssh/ sysconfig/ sasl2/ sgml/ snapper/ ssl/ sysctl.d/ security/ skel/ snmp/ sudoers.d/ systemd/ sh-4.2$ /etc/s
And if I did type enough to be unique
sh-4.2$ /etc/sou and hit tab, it shows the matching path node
sh-4.2$ /etc/sound/ one more tab shows the next (only) subdirectory
sh-4.2$ /etc/sound/events/
With no command portion it assumes you want to execute something, and won't act unless there is a directory or an executable. If you give it a command it will keep adding portions with each tab till it finds something that makes sense.
sh-4.2$ ls /etc/sou tab sh-4.2$ ls /etc/sound/ tab sh-4.2$ ls /etc/sound/events/ tab sh-4.2$ ls /etc/sound/events/g tab tab (it shows the list).... gnome-2.soundlist gtk-events-2.soundlist sh-4.2$ ls /etc/sound/events/g
-- After all is said and done, more is said than done. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
John Andersen