From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from oldp.astro.wisc.edu ([128.104.39.15]) by hawkwind.utcs.toronto.edu with SMTP id <2702>; Mon, 16 Aug 1993 13:08:35 -0400 Received: by oldp.astro.wisc.edu (5.65/DEC-Ultrix/4.3) id AA17951; Mon, 16 Aug 1993 12:08:25 -0500 Message-Id: <9308161708.AA17951@oldp.astro.wisc.edu> To: rc@hawkwind.utcs.toronto.edu Subject: Re: How to edit filenames in rc scripts without sed Date: Mon, 16 Aug 1993 13:08:24 -0400 From: Alan Watson X-Mts: smtp I concur with Steve. However, I would like to point out one possible problem with basename in this regard -- many basename executables are /bin/sh scripts which call expr three times. On my machine, the difference in speed between the /bin/sh-based system basename and the pure-binary GNU basename is a factor of 4 (which is the difference in the number of fork/exec pairs). Anything based on ifs separation will probably come to grief on file names containing repeated dots, such as `foo..bar'. Alan.