Sujet : Re: bash prompt question
De : geoff (at) *nospam* clare.See-My-Signature.invalid (Geoff Clare)
Groupes : comp.unix.shellDate : 24. Sep 2024, 14:26:01
Autres entêtes
Message-ID : <pnnask-hc.ln1@ID-313840.user.individual.net>
References : 1 2 3 4 5
User-Agent : Pan/0.154 (Izium; 517acf4)
Brian Patrie wrote:
Geoff Clare wrote:
> Brian Patrie wrote:
>> sh (and its clones)--which don't support an rc file--are,
>> of course, the exception to this rule.
>
> You don't count a file specified in ENV as an "rc file" ?
Not all shells support ENV. dash doesn't seem to.
The dash man page on my Debian system says ENV is supported.
Even if they did, it would still be a bad idea to export the prompt
strings in other shells.
Depends what you put in them. Personally I only use what POSIX
requires to be supported, so exporting is not a problem (and I do
export PS1).
-- Geoff Clare <netnews@gclare.org.uk>