Public bug reported:

Binary package hint: bash

This surfaced when I set an option in my .bashrc file, which is
fortuitously sourced when I login using Xsession.  The result is that my
Xsession shows an xmessage window that reports that it cannot start the
"off" session.   Inspection of the various files run during the kdm
login process showed that there was a problem in the bash shell.

Here is a simple example.

test_args.sh:
#!/bin/bash
echo "Before call to .bashrc, args = [EMAIL PROTECTED]"
set -o emacs off
echo "After source of .bashrc, args = [EMAIL PROTECTED]"

when test_args.sh is run, the following output is seen:
$ ./test_args.sh one two three four five
Before call to .bashrc, args = one two three four five
After source of .bashrc, args = off
$

If one changes the argument at the end of the set -o option statement to "on", 
a similar result
will be seen, except that $@ will contain "on" and not "off".
--
James Tullett

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

-- 
set -o option off clobbers shell arguments in bash
https://bugs.launchpad.net/bugs/190466
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to