bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i specify the scripting language used for parsing a script?


From: Dennis Williamson
Subject: Re: How can i specify the scripting language used for parsing a script?
Date: Sat, 5 Feb 2011 07:53:41 -0600

On Sat, Feb 5, 2011 at 6:57 AM, ali hagigat <address@hidden> wrote:
> #!/bin/sh
> echo ppppppp
> echo $SHELL
> exit 2200
>
> In the above script i tried to specify /bin/sh as my parser by a
> comment. Is that OK? When I type ./scr2 , i want bash recognize
> /bin/sh as the parser of ./scr2.
>
>
exit only works with values 0-255 so your "exit 2200"  will actually
be "exit 152" (2200 mod 256).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]