[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell prompt

From: Chet Ramey
Subject: Re: shell prompt
Date: Tue, 12 Feb 2002 09:21:18 -0500

Put newlines into your message the next time.

> I am going through the bash source code.I would like to know where
> exactly is the shell prompt being printed on the console for the very
> first time.I went through the "main" routine of shell.c file,but could
> not find it. 

If you're interactive and using readline to read input, readline prints
the prompt.  It's passed as an argument to readline().  Look for the
call to readline in parse.y:yy_readline_get().

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]