Re: Shell script problem



01.03.2010 14:40, Vijay Shanker Dubey:

sorry guys,

have attached new file.

I you use bashisms, make sure your script is run through bash, i. e.
make the shebang read
#!/bin/bash
instead of
#!/bin/sh

--
Regards
mks

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: What is a replacement for batch files?
    ... The same shebang will not work for all of them. ... being run by bash. ... If you hadn't told it to use an incompatible shell it would ... I demonstrated that, when running tcsh, a shell script without a ...
    (alt.os.linux)
  • Re: Verwirrung bei Variablenexpansion
    ... Ein Script mit dieser Zeile und einem /bin/bash Shebang. ... Egal ob es von der Bash oder der Korn aufgerufen wird. ... And that roads name is... ...
    (de.comp.os.unix.shell)
  • Re: /bin/sh: bad interpreter: Operation not permitted
    ... This seems like a good shebang: ... through the script, it looks likely that it's a .profile issue. ... on the Mac is actually a copy of bash, and bash, when invoked as sh, ... execute the file in question. ...
    (comp.sys.mac.system)
  • Re: [PATCH] scripts: decodecode: use /bin/bash
    ... the decodecode script, ... Alternatively, I have a patch to remove the bashisms, if that's preferred. ... I am a bit surprised to see this is bash specific. ...
    (Linux-Kernel)
  • Re: What is a replacement for batch files?
    ... A script without a shebang is run by /bin/sh. ... Uh, it IS bash. ... Perl is a mess. ...
    (alt.os.linux)