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.