From: Greg Freemyer <greg.freemyer@gmail.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: Re: Problems with path groups in multipath-tools
Date: Fri, 25 Feb 2005 11:43:26 -0500 [thread overview]
Message-ID: <87f94c3705022508431733f073@mail.gmail.com> (raw)
In-Reply-To: <20050225163117.GA8151@debian.mydomain.bogus>
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.
Greg
next prev parent reply other threads:[~2005-02-25 16:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050224210918.GA10496@debian.mydomain.bogus>
2005-02-25 12:56 ` Problems with path groups in multipath-tools Juha Koivisto
2005-02-25 15:07 ` Greg Freemyer
2005-02-25 16:31 ` Juha Koivisto
2005-02-25 16:43 ` Greg Freemyer [this message]
2005-02-25 17:10 ` Juha Koivisto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87f94c3705022508431733f073@mail.gmail.com \
--to=greg.freemyer@gmail.com \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.