From owner-freebsd-questions@FreeBSD.ORG Thu Oct 27 09:15:50 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3AB4916A41F; Thu, 27 Oct 2005 09:15:50 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta13.adelphia.net (mta13.mail.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6564C43D45; Thu, 27 Oct 2005 09:15:49 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.76.67]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20051027091548.FAMP23334.mta13.adelphia.net@default.chvlva.adelphia.net>; Thu, 27 Oct 2005 05:15:48 -0400 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id A97AAB4F8; Thu, 27 Oct 2005 05:15:59 -0400 (EDT) Date: Thu, 27 Oct 2005 05:15:59 -0400 From: Parv To: freebsd-questions@freebsd.org, Fafa Hafiz Krantz , questions@freebsd.org Message-ID: <20051027091559.GA13069@holestein.holy.cow> Mail-Followup-To: freebsd-questions@freebsd.org, Fafa Hafiz Krantz , questions@freebsd.org References: <20051026091053.8E30C83C03@ws1-1.us4.outblaze.com> <20051026103948.GB5168@holestein.holy.cow> <20051026194739.GL29508@localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051026194739.GL29508@localdomain> Cc: f-q Subject: Re: Maintaining my music collection (off topic) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 09:15:50 -0000 in message <20051026194739.GL29508@localdomain>, wrote Will Maier thusly... > > On Wed, Oct 26, 2005 at 06:39:48AM -0400, Parv wrote: > > Looks like this script is not going to work in FreeBSD /bin/sh. > > Install one of shells/bash* (guessing) ports and run this script > > under that shell (unless somebody does the conversion for you). > > FreeBSD sh (1) supports parameter expansion, including expansions used > in the referenced function. (The deleted part Will M refereed above was similar to ${var%/*}.) Yes, you are correct. I misremembered and did not paid much attention to sh(1) man page before firing off my earlier post. - Parv --