/bin/sh: invalid option -- 1

Denys Vlasenko vda.linux at googlemail.com
Wed Aug 19 17:39:15 UTC 2009


On Tue, Aug 18, 2009 at 6:02 PM, Piotr Grudzinski<piotr at powersmiths.com> wrote:
> Running bb v1.15.0.svn (2009-08-14) and hush.
>
> The runsv applet (part of runit utility) calls my finish script with an
> argument set to "-1". busybox seems to assume that this is an option and
> displays:
>
>     /bin/sh: invalid option -- 1
>
> The same happens if I call the script with an argument containing leading
> '-' . Example: ./finish -abc
>
> Is this a bug?

What is your /bin/sh? (bash/ash/hush/...)


More information about the busybox mailing list