[BusyBox] ash and kill

Vladimir N. Oleynik dzo at simtreas.ru
Thu Aug 19 11:14:16 UTC 2004


Magnus,

>>>/ # kill --help
>>>kill: 3: Illegal option --
>>
>>And should be. :-P
>>Almost all popular interpreters do not support GNU syntax,
>>but have internal "kill" command if have a job-control code.
>>
>>bash$ kill --help
>>-bash: kill: -help: invalid signal specification
> 
> 
> Allright, thanks!
> So the "kill: %u: Illegal option --" format is correct?
> The "%u" seems a bit strange to me...

"%u" printed line number. Its right for command file and
confuse for line interactive :-(
But its not busybox problem, ash/dash have this problem.

 From my a correspondence with Herbert Xu:

 >Also. This version have strange warning and error messages:
 >>
 >> dash$ pwd --
 >> pwd: 1: Illegal option --
 >> dash$ cd /aaa
 >> cd: 2: can't cd to /aaa
 >>
 >> I think, show lineno true if is notinteractive usage only.

 > Yes, the line number and error messages in general is still screwed up.
 > At some stage I will fix it.


--w
vodz




More information about the busybox mailing list