Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] An ickle bit of shell scripting


On Mon, Nov 13, 2000 at 08:55:54PM +0000, Herbert Xu wrote:
> Scott Howard <scott@xxxxxxxxxx> wrote:
> 
> > In particular :
> 
> > CalledAs=`basename $0`
> 
> And if your shell were POSIX compliant, you can use
> 
> CalledAs="${0##*/}"

That's a guy playing celebrity head, glazed, gobsmacked with a flat nose
and slightly confused. Oh he has a goaty too. 

:-)

Anand