|
From: | Matthew Woehlke |
Subject: | Re: basename sucks |
Date: | Fri, 02 Feb 2007 10:49:48 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20061206 Thunderbird/1.5.0.9 Mnenhy/0.7.4.0 |
Bob Proulx wrote:
Besically in the shell the use of dirname and basename are going to be less efficient because they are silly things to begin with. It is a very simple operation and there are whole external commands for doing it? Wow.
Yes, there are. Bourne shell(*) can't do the tricks that have been posted as alternatives, whereas 'basename' and 'dirname' are portable. Why do you think 'test' is still in coreutils? :-)
-- MatthewOFFICER throws a tear gas grenade at you. You start to feel nauseous. You need fresh air quickly.
> OPEN WINDOWS Sorry, I have a philosophical objection to Microsoft products.
[Prev in Thread] | Current Thread | [Next in Thread] |