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> <47B36486.5060404@fs.ei.tum.de> <47b37127$0$854$415eb37d@crater_reader.dragonflybsd.org>
From: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Subject: Re: Globbing
Date: Thu, 14 Feb 2008 00:34:20 +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: <47b37127$0$854$415eb37d@crater_reader.dragonflybsd.org>
Sender: kernel-errors@crater.dragonflybsd.org
Errors-To: kernel-errors@crater.dragonflybsd.org
Lines: 42
NNTP-Posting-Host: 216.240.41.25
X-Trace: 1202946110 crater_reader.dragonflybsd.org 854 216.240.41.25
Xref: crater_reader.dragonflybsd.org dragonfly.kernel:12135

Bill Hacker wrote:
> Simon 'corecode' Schubert wrote:
>> 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=20
>>>>> utility that has that same sort of 'flavor' of approach  - just=20
>>>>> hard-wired 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
> Thanks,
>=20
> I (think) I understand what it is expected to do, but have missed=20
> something, as a cut n' paste hasn't (done that) yet.
>=20
> Not in ksh anyway.
>=20
> Example of syntax 'in use'? i.e. what to feed it...

rm *

--=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]