[NTLUG:Discuss] set -x not working! was: what is ":bad option"?

Cameron hrothgar at endor.hsutx.edu
Sun Jul 23 13:25:10 CDT 2000


* llliiilll at hotmail.com [2000.07.23 04:36]:
: if I try:
: 
: #!/bin/sh -x
: 
: still get :bad option.

Kevin Brannen already made a good reply to most of what you said.  the
only thing i would add is that you should make sure that /bin/sh is
actually a symlink to bash and not some other shell.  you should
something like:

  $ ls -o /bin/sh
  lrwxrwxrwx   1 root            9 Jan 19  2000 /bin/sh -> /bin/bash

Kevin already noted that you have a -e instead of a -x in the code
snippet you showed us.  so check that first.  anyway, hope this helps.
--
cameron
  / If everything seems to be going well,    \
  \ you have obviously overlooked something. /




More information about the Discuss mailing list