Submitted 21-Aug-00 by Guillaume Cottenceau:

> More probably, your prompt is eating the last line which as no trailing \n
> when you try to print out the script.

You're correct.  Forcing the echo of a newline afterward shows the correct
script.  But, I still end up with a grey mesh ahd X cursor with no wm or
xterm when I type startx without having ~/.xinitrc.  Further testing reveals
that it is the "#!/bin/bash -login" in /etc/X11/Xsession that is causing the
problem.  Changing bash to sh seems to fix it.

Ignoring this specific case of it possibly causing problems, I personally
feel that most (all?) of the Mandrake supplied shell scripts that are
sh/bash based should use sh.  Certainly, there are a few things you cannot
do when it is invoked as sh, but it is more portable.

As a zsh user, I would also like to see zsh repackaged so the the executable
in in /bin.  Zsh provides an sh mode (if called as such), and having it in
/bin could eliminate the need for me to have bash on this system.  After
all, I only have bash to satisfy the requirements of some Mandrake scripts
and because it is the only full shell that provides sh without having /usr
mounted.

> Else, upgrade to latest stuff, I did an install of cooker today, it works.

Actually, I keep fairly current.  And the new system *does* work 100% for
runlevel 5.  It's when you want to startx from runlevel 3 that it breaks.
As an aside, I know that chksession is supposed to decide which wm is first
by the number in front.  But, it doesn't seem to like me :)

root@bladehawke /etc/X11/wmsession.d # ls
1kde  2gnome  6sawfish  9Icewm
root@bladehawke /etc/X11/wmsession.d # chksession -F
kde
root@bladehawke /etc/X11/wmsession.d # mv 1kde 2kde
root@bladehawke /etc/X11/wmsession.d # mv 2gnome 1gnome
root@bladehawke /etc/X11/wmsession.d # ls
1gnome  2kde  6sawfish  9Icewm
root@bladehawke /etc/X11/wmsession.d # chksession -F
kde
root@bladehawke /etc/X11/wmsession.d #

(This is what I get for upgrading kde :)

-- 
Anton Graham                            GPG ID: 0x18F78541
<[EMAIL PROTECTED]>                 RSA key available upon request
 
"And remember: Evil will always prevail, because Good is dumb." 
  -- Spaceballs


Reply via email to