[Top][All Lists]

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

Re: Why does this work

From: Chet Ramey
Subject: Re: Why does this work
Date: Wed, 30 Jan 2002 08:24:35 -0500

> I'd like to access the script name ($0) in a shell function. I can do
> this with
>       [...elided...]
> My questions are:
> - Why gives the "set" statement as listed above access to the script
>   name?

$0 stays the same in a shell function.

> - Why does this work with bash but not with ksh?

Which part?

``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]