DragonFly kernel List (threaded) for 2008-02
DragonFly BSD
DragonFly kernel List (threaded) for 2008-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[no subject]


Date:

er_reader.dragonflybsd.org>	<47b34981$0$856$415eb37d@crater_reader.dragonflybsd.org> <20080213203349.e9caf15b.steve@sohara.org> <47b35e26$0$848$415eb37d@crater_reader.dragonflybsd.org>
From: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Subject: Re: Globbing
Date: Wed, 13 Feb 2008 22:43:34 +0100
BestServHost: crater.dragonflybsd.org
List-Post: <mailto:kernel@crater.dragonflybsd.org>
List-Subscribe: <mailto:kernel-request@crater.dragonflybsd.org?body=subscribe>
List-Unsubscribe: <mailto:kernel-request@crater.dragonflybsd.org?body=unsubscribe>
List-Help: <mailto:kernel-request@crater.dragonflybsd.org?body=help>
List-Owner: <mailto:owner-kernel@crater.dragonflybsd.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
In-Reply-To: <47b35e26$0$848$415eb37d@crater_reader.dragonflybsd.org>
Sender: kernel-errors@crater.dragonflybsd.org
Errors-To: kernel-errors@crater.dragonflybsd.org
Lines: 29
NNTP-Posting-Host: 216.240.41.25
X-Trace: 1202939537 crater_reader.dragonflybsd.org 847 216.240.41.25
Xref: crater_reader.dragonflybsd.org dragonfly.kernel:12131

Bill Hacker wrote:
>>> After all, if use of find or xargs accomplishes the task w/o ill=20
>>> effects on memory, then what prevents creation of a compiled utility =

>>> that has that same sort of 'flavor' of approach  - just hard-wired=20
>>> from the get-go?
>>     It would have to be a shell builtin
> An assumption based on legacy.

rm() {
         args=3Drm
         while [ "$#" -lt 0 ]
         do
                 case "$1" in
                 -*) args=3D"$args $1"; shift ;;
                 *) break ;;
                 esac
         done

         echo "$@" | xargs $args
}

--=20
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low =E2=82=AC=E2=82=AC=E2=82=AC NOW!1  +++=
      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]