Vincent Lefevre wrote:
> On 2005-12-16 13:47:21 -0500, Chet Ramey wrote:
>> Vincent Lefevre wrote:
>>> When I start bash with "bash --rcfile /etc/bash.bashrc", the problem
>>> occurs. But if I type "bash --norc" then "source /etc/bash.bashrc",
>>> it doesn't occur. What's the difference between them?
>> The difference is that readline initializes itself after
>> /etc/bash.bashrc is read in the former case, and before it's read in
>> the latter.  That would seem to point to /etc/bash.bashrc.
> 
> Possibly another problem: it seems that --rcfile is buggy.
> 
> dixsept:~> bash --norc
> bash-3.1$
> 
> dixsept:~> bash --rcfile /dev/null
> [EMAIL PROTECTED]:~$
> 
> Shouldn't I have got the same prompt?

Nope.  Debian compiles bash to source /etc/bash.bashrc at startup,
before the user rcfile is sourced.  If --norc is supplied, that is
suppressed.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to