[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: [Fwd: [Bug 53345] .bash_profile script is not sourced]
From: Thiago Macieira <thiago.macieira () kdemail ! net>
Date: 2004-02-27 0:16:08
Message-ID: 200402262116.17682.thiago.macieira () kdemail ! net
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Roger Larsson wrote:
>what about my idea to add -l to #! /bin/sh? (see bug report)
>Wouldn't that work in most cases?
That's not portable. It would only work when sh is bash.
The only way of forcing a login shell is to make argv[0] start with a
dash. And, unfortunately, I know of no portable way of doing that in a
shell script.
--
Thiago Macieira - Registered Linux user #65028
thiago (AT) macieira (DOT) info
ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic