[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modifying $0?
From: |
Paul Jarc |
Subject: |
Re: Modifying $0? |
Date: |
Wed, 07 Jul 2004 16:12:24 -0400 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
Davy Durham <pubaddr@davyandbeth.com> wrote:
> And I tried combining using the first arg filename feature and -c
> .. but that didn't work either.
Try this:
#!/bin/sh
if [ "$0" != what-you-want ]; then
exec /bin/sh -c '. "$@"' what-you-want "$0" ${1+"$@"}
fi
shift
...
paul
- Modifying $0?, Davy Durham, 2004/07/07
- Re: Modifying $0?,
Paul Jarc <=