|
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 <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |