[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: [BusyBox] ps does not quote meta chars
From: "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date: 2001-12-22 7:38:46
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic