View Single Post
Posts: 451 | Thanked: 334 times | Joined on Sep 2009
#14
Works on the N900 as well through "exec sh" inside the script.

I want to build a universal script that will exec either bash or sh, depending on which environment it is run.

How do I determine programatically whether exec sh or bash inside a script? An equivalent of `echo $0` ran from within the terminal...