[BusyBox] ps does not quote meta chars

Vladimir N. Oleynik dzo at simtreas.ru
Sat Dec 22 07:38:46 UTC 2001


Giulio Orsero wrote:
> 
> 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).

Quite can be. 
But the project has more significant problems, for example, 
the utility "ps" senseless with at BB_FEATURE_STANDALONE_SHELL :(



--w
vodz




More information about the busybox mailing list