Look under "parameter expansion" in the bash manpage.

--- Ramil Galib <[EMAIL PROTECTED]> wrote:

> Hi all,
> I saw in a script this line:
> 
>          cmd=${0##*/}  # Command's basename
> 
> Echoed the value of cmd and this returns -bash.
> 
> I cant seem to figure out how this works.
> > _________________________________________________
> Philippine Linux Users' Group (PLUG) Mailing List
> http://lists.linux.org.ph/mailman/listinfo/plug
> Searchable Archives: http://archives.free.net.ph


--
Cats just don't feel safe on a moving bicycle, 
no matter how much duct tape you use...
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to