zsh-users
 help / color / mirror / code / Atom feed
* Re: Notes on bash(1)
@ 1998-12-09 16:19 Jason Price
  1998-12-09 16:38 ` Michael Barnes
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Jason Price @ 1998-12-09 16:19 UTC (permalink / raw)
  To: zsh-users

>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@gatech.edu
More to the point, one answer:           Theta Xi, Beta Alpha, 449
"Yes, Lord."


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-12-10 23:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-12-09 16:19 Notes on bash(1) Jason Price
1998-12-09 16:38 ` Michael Barnes
1998-12-09 17:17 ` Swen Thuemmler
1998-12-09 17:23 ` Bart Schaefer
1998-12-09 17:44 ` Paul Lew
1998-12-10 10:45 ` Bruce Stephens

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).