Shell prompt output
Rachid Koucha
rachid.koucha at gmail.com
Fri Sep 15 10:04:08 UTC 2023
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20230915/7f54e998/attachment.html>
More information about the busybox
mailing list