Public bug reported: Binary package hint: bash
Hi, this is a knock-on effect bug from here: https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/207369 And the reason why I'm posting the bug here is because "echo $SHELL" prints out "bash", although this happens on "sh" and "dash" too. Basically, ever since the program "visudo" changed it's default editor to "Vim", there have been some problems for a few users. And I proposed a fix, that works on the most current version of bash (at least, as far as I'm aware). http://ubuntuforums.org/showpost.php?p=4872244&postcount=6 And this piece of information has proved so useful that it has made it's way onto the Ubuntu Help Docs! https://help.ubuntu.com/community/Sudoers But, as it may seem. Now I've upgraded to the new proposed bash version. This fails to work, as it appears that aliases are ignored after the first command. ie: $ alias speak='echo' $ alias word='echo' $ speak word word $ When I type in word: $ word $ When I type in word speak: $ word speak speak $ What should really be happening (or at least what I expect to happen) is this: $ word speak echo $ As both aliases should be substituted with their given command (or strings). Where this all ties in? Well... If you've read the links above, you'll notice that my fix is: alias visudo='-E visudo' But since the alias is now ignored, visudo is ran as normal (in Vim, rather than my chosen editor). As I said, I'm posting here because my shell is BASH, but I have a very distinct feeling that it may be an edit in the "set" command settings. Regards Iain Here is my info: $ lsb_release -rd Description: Ubuntu 8.04 Release: 8.04 $ apt-cache policy bash bash: Installed: 3.2-0ubuntu18 Candidate: 3.2-0ubuntu18 Version table: *** 3.2-0ubuntu18 0 500 http://gb.archive.ubuntu.com hardy-proposed/main Packages 100 /var/lib/dpkg/status 3.2-0ubuntu16 0 500 http://gb.archive.ubuntu.com hardy/main Packages ** Affects: bash (Ubuntu) Importance: Undecided Status: New -- aliases not accounted for after first command https://bugs.launchpad.net/bugs/231258 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
