On Thu, 25 Nov 2010 11:24:07 +1100 Lex Trotman elextr@gmail.com wrote:
Unfortunately I don't know that a shell login argument is portable. I think -l is specific to bash, but even --login doesn't work for dash (the default /bin/sh on Ubuntu IIRC).
Patch actually developed and tested on Ubuntu.
Maybe yours is Bash then.
No bin/sh -> dash
A while ago I saw: https://wiki.ubuntu.com/DashAsBinSh
And my dash-0.5.4-2.fc8 doesn't seem to have a login argument.
Correct IAW the POSIX spec.
Yet the patch worked on my system??
Well either your dash supports -l or the shell that gets run isn't dash. Anyway, -l is non-standard and there could be systems it wouldn't work on.
Nick