A Couple Of Questions

John Lowell johnlowell at ameritech.net
Sun Nov 17 09:58:17 PST 2002

----- Original Message ----- 
From: "Ulrich Fahrenberg" <uli at math.auc.dk>
To: <lfs-support at linuxfromscratch.org>
Sent: Sunday, November 17, 2002 5:24 AM
Subject: Re: A Couple Of Questions
> From the manpage of bash, section `PROMPTING':
>        When executing interactively, bash  displays  the  primary
>        prompt  PS1  when  it  is ready to read a command, and the
>        secondary prompt PS2 when it needs more input to  complete
>        a  command.
> In your case, `[lfs at PEER3 lfs]$' is the primary prompt, and `>' is the
> secondary. There are two more prompts, PS3 and PS4, but you'll hardly
> ever see them.
> So what happened was the following: When you enter the
> `cat>blabla<<"EOF"' command, you tell bash to record your input until
> you type EOF on a line for itself, and to use this recorded input as
> the input to file blabla. While recording the input, bash displays the
> secondary prompt, and after you typed EOF, bash creates the file and
> is ready for the next command, hence displaying the primary prompt.
> The `<<' thingy is explained in section `Here Documents' of the bash
> manpage.
> Regards,
> Uli


Many thanks for the in-depth reply. With answers like this one, I learn.

John Lowell
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message

More information about the lfs-support mailing list