I wonder would it show on the symlink? I've seen sh symlinked to bash before... on Ubuntu it points to "dash"
janstey@duffman:~$ ls -la /bin/sh lrwxrwxrwx 1 root root 4 2011-01-05 15:34 /bin/sh -> dash On Fri, Apr 1, 2011 at 11:34 AM, Hiram Chirino <[email protected]>wrote: > Do you know if there is way of detecting if the /bin/sh is bash or > not? Would be nice to use the -a feature if it's available. > > Regards, > Hiram > > FuseSource > Web: http://fusesource.com/ > > > > > On Fri, Apr 1, 2011 at 10:02 AM, Jon Anstey <[email protected]> wrote: > > Running latest Apollo on Ubuntu gives me this: > > > > janstey@duffman:/opt/fuse/apache-apollo-1.0-SNAPSHOT/bin$ ./apollo > > exec: 151: -a: not found > > > > To get it working I found two solutions... > > > > 1. Switch script to use bash since "-a" is bash only, or > > 2. Remove the "-a apollo" bit from the exec line > > > > -- > > Cheers, > > Jon > > --------------- > > FuseSource > > Email: [email protected] > > Web: fusesource.com > > Twitter: jon_anstey > > Blog: http://janstey.blogspot.com > > Author of Camel in Action: http://manning.com/ibsen > > > -- Cheers, Jon --------------- FuseSource Email: [email protected] Web: fusesource.com Twitter: jon_anstey Blog: http://janstey.blogspot.com Author of Camel in Action: http://manning.com/ibsen
