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

Re: [dm-devel] Re: Problems with path groups in multipath-tools

On Fri, 25 Feb 2005 18:31:18 +0200, Juha Koivisto <Juha Koivisto hut fi> wrote:
> On Fri, Feb 25, 2005 at 10:07:43AM -0500, Greg Freemyer wrote:
> > Your problem is the very first line of your script
> >
> > #/bin/sh
> Uh... yes, I see that very clearly now. You don't want to know how many
> hours I had spent debugging this (and then it turns out to be a simple
> typo). The reason I missed it was that I had tested the script from the
> command line and it worked, so I assumed the problem had to be in the
> multipath tool. (I would have thought bash needs ". scriptname" to
> execute a text file as a script in the current shell, but apparently
> not.)
Actually none of the shells require the #!/bin/sh type of thing if you
are invoking the script from the shell you want to execute it.

The purpose of it is to allow you to invoke the script from somewhere
other than the shell.

A simple example, if you write a csh script, then bash would require
#!/bin/csh to cause the shell to be swapped out.  Without the
#!/bin/csh, bash assumes it is native bash script.


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