[BusyBox] ps does not quote meta chars
Giulio Orsero
giulioo at pobox.com
Sat Dec 22 07:30:41 UTC 2001
latest cvs, libc5.
If I use in inittab
...respawn... /bin/getty -I "\033[H\033[J" 38400 tty2
I can do "$ ps"
If I use
...respawn... /bin/getty -I "<ESC>[H<ESC>[J" 38400 tty2
(<ESC> is real ESC typed in vi as CTRL+V->ESC)
"$ps " causes the screen to be cleared (it interprets the excape sequences)
when the output reaches the getty line.
Another "ps" automatically converts <ESC> to \033 in its output.
In my case I can just use \033 in inittab, but maybe this can cause
unexpected problems in other conditions (ie one puts up a process with weird
chars in it and ps interprets them doing something bad).
--
giulioo at pobox.com
More information about the busybox
mailing list