Hi, On Wed, Jul 03, 2013 at 11:59:15PM +0200, Thomas Preud'homme wrote: > Le dimanche 23 juin 2013 21:34:59, Thomas Preud'homme a écrit : > > > > Sorry for the spam but I just found it. It was just in front of me. > > /etc/kde4/kdm/Xsession contains the following excerpt: > > > > case $SHELL in > > [SNIP bash case] > > */zsh) > > [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@" > > emulate -R zsh > > > > I've seen several occurences in kdm's code to set the SHELL environment > > variable. So later Xsession is executed, $SHELL is detected to be zsh so it > > exec zsh /etc/kde4/kdm/Xsession $otherargs which set zsh to zsh emulation > > mode and then source /etc/X11/Xsession. I suppose the bug could be fixed > > by setting zsh to sh emulate mode. > > So I'm running with emulate -R sh instead of emulate -R zsh since I wrote > this > message and it seems to work fine. I get working ibus in both GTK and Qt > while > it wasn't the case before and the session is started without any visible > glitch. So I intend to reassign the bug with a little explanation to kdm > package in the next days.
Yes please. I also found zsh behavior odd. === DASH === $ EEE=$(ls /usr/lib/*/gtk-2.0/*/immodules/im-ibus.so /usr/lib/gtk-2.0/*/immodules/im-ibus.so) ls: cannot access /usr/lib/gtk-2.0/*/immodules/im-ibus.so: No such file or directory $ echo $EEE /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so $ ls /usr/lib/*/gtk-2.0/*/immodules/im-ibus.so /usr/lib/gtk-2.0/*/immodules/im-ibus.so 2>/dev/null /usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules/im-ibus.so $ ls /usr/lib/*/gtk-2.0/*/immodules/im-ibus.so /usr/lib/gtk-2.0/*/immodules/im-ibus.so 1>/dev/null ls: cannot access /usr/lib/gtk-2.0/*/immodules/im-ibus.so: No such file or directory === ZSH === osamu@goofy ~ % EEE=$(ls /usr/lib/*/gtk-2.0/*/immodules/im-ibus.so /usr/lib/gtk-2.0/*/immodules/im-ibus.so) zsh: no matches found: /usr/lib/gtk-2.0/*/immodules/im-ibus.so osamu@goofy ~ % echo $EEE osamu@goofy ~ % ls /usr/lib/*/gtk-2.0/*/immodules/im-ibus.so /usr/lib/gtk-2.0/*/immodules/im-ibus.so 2>/dev/null zsh: no matches found: /usr/lib/gtk-2.0/*/immodules/im-ibus.so osamu@goofy ~ % ls /usr/lib/*/gtk-2.0/*/immodules/im-ibus.so /usr/lib/gtk-2.0/*/immodules/im-ibus.so 1>/dev/null zsh: no matches found: /usr/lib/gtk-2.0/*/immodules/im-ibus.so The second path is not expected to match anything. That is the same in dash or bash. But, zsh spits some error message to non-stderr and quits. EEE is not set either. This is strange for me. Osamu PS: The second path is there to support backport etc. This is intentional and works fine with dash/bash. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

