On 05/23/2014 08:43 AM, Ole Tange wrote:
One idea is to let it depend on which shell it is currently running
under: If the script starts with #!/bin/bash or #!/bin/tcsh then use
that shell. It will also make sense if, say, your login shell is tcsh,
but the first thing you do is to start Bash. I am not really sure how
to detect that, but it can probably be done.]

I will say that I presumed that this was the behavior (rightly or wrongly). That is, I'm writing a bash script so everything inside is "bash" for lack of a better word. Make sense now that I know a bit more of what parallel actually does.

But, as you say, it is a bit odd to figure out what the script might purport to be inside the script. The loader uses magic to interpret shebangs, right? Man, there could be some fancy, subtle security issues with some possibilities here...

Matt

--
Matt Thompson          SSAI, Sr Software Test Engr
NASA GSFC, Global Modeling and Assimilation Office
Code 610.1, 8800 Greenbelt Rd, Greenbelt, MD 20771
Phone: 301-614-6712              Fax: 301-614-6246

  • User opi... Ole Tange
    • Re:... Ole Tange
    • RE:... Cook, Malcolm
      • ... Ole Tange
        • ... Cook, Malcolm
    • Re:... Thompson, Matt (GSFC-610.1)[SCIENCE SYSTEMS AND APPLICATIONS INC]

Reply via email to