| Summary: | XSESSION environment variable assigned incorrectly when using xdm | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Soren Harward <stharward> |
| Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | emilbeinroth, florianlueke |
| Priority: | High | ||
| Version: | 1.4 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Soren Harward
2004-01-23 17:45:06 UTC
I can't confirm this behaivour. I have set bell-style none in my /etc/inputrc and I certainly don't get that echoed when I do echo $1 $2 whether login shell or no. A quote from the bash manpage (first paragraph of the 'set' builtin command): "Any arguments remaining after the options are processed are treated as values for the positional parameters and are assigned, in order, to $1, $2, ... $n." While testing with a small shellscript I noticed that if any parameters are passed via the commandline, the parameters created by 'set' are discarded. Unfortunately I didn't see this behaviour mentioned in the documentation. So this error only happens if the user has additional arguments to 'set' in his ~/.bashrc _and_ if there are no parameters passed to the Xsession script (which is the case if using xdm as the login manager). A solution would be to check if DISPLAYMANAGER is set to "kdm" (or any other displaymanager that expects parameters) in /etc/rc.conf and to only execute lines 22-24 if this test is true. please see http://bugs.gentoo.org/77447 it may be related to this ( and now resolved ). If this remains a problem with modular X, please reopen. |