Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Notes on bash(1)
- X-seq: zsh-users 1972
- From: Jason Price <gt5076c@xxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxxx
- Subject: Re: Notes on bash(1)
- Date: Wed, 9 Dec 1998 11:19:27 -0500 (EST)
>From zsh-workers:
(Quoting got screwed up... Sorry...)
Forwarded message:
> > * ${parameter/pattern/string} and ${parameter//pattern/string}
> > pattern is expanded as per pathname expansion. [munch]
>
> [munch]
> Maybe it can be done quite simply by upgrading the extra flags Sven
> added for # and % to match internal bits of a parameter's value.
there are a heck of a lot of ${...} modifiers that are wonderfully useful,
but in my searching through the man pages, I havn't found an equivelent to
basename /usr/local/bin/mumble -> mumble. I need to pull the basename out
of path strings quite offten, and I'd like to do so in shell.
Is this ... (wait, this is zsh) How can I do this?
Jason
--
Faith is not a matter of questions. Jason Price
Faith is a matter of answers. jprice@xxxxxxxxxx
More to the point, one answer: Theta Xi, Beta Alpha, 449
"Yes, Lord."
Messages sorted by:
Reverse Date,
Date,
Thread,
Author