Skip to main content
29 events
when toggle format what by license comment
Jan 3, 2020 at 15:13 history edited Kusalananda
edited tags; edited tags
Jan 3, 2020 at 15:02 answer added Pablo Colazurdo timeline score: 2
Sep 19, 2017 at 23:17 comment added rugk Is not this a duplicate of How to test what shell I am using in a terminal??
Aug 9, 2015 at 21:49 history edited iconoclast
since the accepted answer is for Linux, the questioner seems to be only concerned with Linux (I've not tested AIX or Solaris or BSD, but the accepted answer fails on OS X)
S Apr 20, 2013 at 22:45 history bounty ended Gilles 'SO- stop being evil'
S Apr 20, 2013 at 22:45 history notice removed Gilles 'SO- stop being evil'
Apr 19, 2013 at 21:37 comment added g4ur4v ksh is the shell where I am developing the script...Its not the shell where I might run it.
Apr 18, 2013 at 15:42 comment added depquid @g4ur4v What do you mean by "using ksh shell script"? If you know you're using ksh, what are you trying to determine?
Apr 16, 2013 at 20:35 comment added depquid This is similar to: How to test what shell I am using in a terminal? Perhaps not a dup since this question is specifically about being within a script. But I think that's the implied context for the other question, because it shouldn't be too hard for a user to know which shell they're running interactively, should it?
Apr 16, 2013 at 7:16 vote accept g4ur4v
Apr 15, 2013 at 23:59 answer added Wing Tang Wong timeline score: 1
Apr 15, 2013 at 11:22 answer added Jens timeline score: 18
Apr 13, 2013 at 0:08 history tweeted twitter.com/#!/StackUnix/status/322863816142639105
Apr 12, 2013 at 22:51 comment added ott-- Check the value of $SHELL.
S Apr 12, 2013 at 22:26 history bounty started Gilles 'SO- stop being evil'
S Apr 12, 2013 at 22:26 history notice added Gilles 'SO- stop being evil' Reward existing answer
Apr 4, 2013 at 14:04 answer added phemmer timeline score: 41
Apr 4, 2013 at 13:52 answer added mari timeline score: 2
Apr 4, 2013 at 11:37 history edited l0b0 CC BY-SA 3.0
Tag instead of comment. Punctuation.
Apr 4, 2013 at 9:03 answer added Stéphane Chazelas timeline score: 66
Apr 4, 2013 at 8:09 answer added Flup timeline score: 10
Apr 4, 2013 at 6:58 comment added Stéphane Chazelas Well, if you add #! /bin/sh - at the top, it will run in sh. Do you mean what variant of sh is it?
Apr 4, 2013 at 6:44 answer added pradeepchhetri timeline score: -1
Apr 4, 2013 at 6:01 comment added g4ur4v @BriGuy: It's a unix shell script.
Apr 4, 2013 at 5:58 comment added BriGuy So what is the scripting language then?
Apr 4, 2013 at 5:55 comment added g4ur4v echo $0 is not an option here ,as the script will run on many different machines where first thing I'll need to check is the shell.
Apr 4, 2013 at 5:54 history edited g4ur4v CC BY-SA 3.0
added 37 characters in body
Apr 4, 2013 at 5:45 comment added BriGuy what scripting language are you using? Also, worse case, you can always shell out a system command to get the "echo $0" results inside of the script.
Apr 4, 2013 at 5:32 history asked g4ur4v CC BY-SA 3.0