[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Shell prompt output
From:       Rachid Koucha <rachid.koucha () gmail ! com>
Date:       2023-09-15 10:04:08
Message-ID: CAOsbXqtjddKOXL7J=Kno88cLSr4dBvRWFE+jUfm3e8ADz21VLg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

Using busybox 1.34.1, I noticed that ash shell displays the prompt on
stdout instead of stderr when CONFIG_FEATURE_EDITING is set. Other shells
like bash do not behave this way: the prompt is always on stderr.

Moreover, the IEEE standard specifies that the prompt must be written on
stderr:

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html

*PS1* Each time an interactive shell is ready to read a command, the value
of this variable shall be subjected to parameter expansion and written to
standard error.


Regards,

Rachid

[Attachment #5 (text/html)]

<div dir="auto">Hi,<div dir="auto"><br></div><div dir="auto">Using busybox 1.34.1, I \
noticed that ash shell displays the prompt on stdout instead of stderr when \
CONFIG_FEATURE_EDITING is set. Other shells like bash do not behave this way: the \
prompt is always on stderr.</div><div dir="auto"><br></div><div dir="auto">Moreover, \
the IEEE standard specifies that the prompt must be written on stderr:</div><div \
dir="auto"><br></div><div dir="auto"><a \
href="https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html">https \
://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html</a><br></div><div \
dir="auto"><br></div><div dir="auto"><dt><i>PS1</i></dt>

<dd>Each time an interactive shell is ready to read a command, the value of this \
variable shall be subjected to parameter expansion and written to standard \
error.</dd></div><div dir="auto"><br></div><div dir="auto"><br><div \
dir="auto">Regards,</div><div dir="auto"><br><div data-smartmail="gmail_signature" \
dir="auto">Rachid<br></div></div></div></div>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic