[OpenWrt-Devel] [PATCHv2] [netifd/scripts] make netifd scripts recognize signal strings such as INT/TERM/KILL/... signal in proto_kill_command()
Yousong Zhou
yszhou4tech at gmail.com
Sat Oct 18 13:10:06 EDT 2014
Am 18.10.2014 23:58 schrieb "Bastian Bittorf" <bittorf at bluebottle.com>:
>
> * Yousong Zhou <yszhou4tech at gmail.com> [18.10.2014 17:58]:
> > > + signal="$( kill -l "$signal" )"
> >
> > the quotes may not work...
>
> they work and you should always quote a var,
> unless you are really sure it is an integer...
>
yes. it's just that the syntax of the quoting here is a little misleading
to me, i.e. concatenation of 3 different part with the var seemingly not
protected by quotes. but i have just tried it with ash and it did work.
yousong
> root at box:~ kill -l "15"
> TERM
> root at box:~ kill -l "TERM"
> 15
>
> bye, bastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20141019/65ecb3b8/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list