|
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:
Why should the users be interested to understand if the program ended with a newline or no?Francesco Montorsi <f18m_cpp217828@yahoo.it> 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.
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
[Prev in Thread] | Current Thread | [Next in Thread] |