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

Re: distinguishing shells



Paul Haahr writes:
    what do you mean distinguish?

I mean I want to be able to write the following in my script:

  magic-stuff-I'm-asking-for || {
	echo Oops!  This is the Bourne shell!  I will feed myself to es.
	exec es $0 ${1+"$@"}
  }