From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3908 invoked from network); 9 Dec 1998 16:25:43 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 9 Dec 1998 16:25:43 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id LAA25293; Wed, 9 Dec 1998 11:20:48 -0500 (EST) Resent-Date: Wed, 9 Dec 1998 11:20:39 -0500 (EST) From: Jason Price Message-Id: <199812091619.LAA15213@gypsy.cad.gatech.edu> Subject: Re: Notes on bash(1) To: zsh-users@math.gatech.edu Date: Wed, 9 Dec 1998 11:19:27 -0500 (EST) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Resent-Message-ID: <"GxoTZ1.0.XA6.MDgRs"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1972 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >>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."