bug-bash
[Top][All Lists]
Advanced

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

Re: last argument expansion has different output using the sh interprete


From: Greg Wooledge
Subject: Re: last argument expansion has different output using the sh interpreter
Date: Fri, 27 May 2011 15:45:08 -0400
User-agent: Mutt/1.4.2.3i

On Fri, May 27, 2011 at 12:35:12PM -0700, Jacoby Hickerson wrote:
>         When executing a test script using the #!/bin/sh interpreter line
> the shell expansion for the last argument ${!#} is blank,

Good.  And now you know why you use a proper #!/bin/bash shebang when
you use bash extensions in your script.

If you are using #!/bin/sh then you should use only POSIX sh features.



reply via email to

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