bug-bash
[Top][All Lists]
Advanced

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

Re: shouldn't prompt printing be smarter?


From: Francesco Montorsi
Subject: Re: shouldn't prompt printing be smarter?
Date: Sun, 01 Apr 2007 23:38:34 +0200
User-agent: Mozilla Thunderbird 1.5.0.10 (X11/20070306)

Paul Jarc ha scritto:
Francesco Montorsi <address@hidden> wrote:
why would you ever want to have the prompt printed at non-zero column of the terminal?

One possible reason: so you can know whether the previous command
ended its output with a newline.  Otherwise the output becomes
slightly ambiguous.
Why should the users be interested to understand if the program ended with a newline or no?

Also, creating an "option" to decide which behaviour should be followed (current one or the one I propose) would make everyone happy: we could have a PROMPT_COLUMN env var which tells bash where to print the prompt. E.g. PROMPT_COLUMN==-1 means current behaviour, PROMPT_COLUMN==0 means my proposed behaviour.

Francesco





reply via email to

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