🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #1374

Re: Beware xargs security holes

#1374
From: Lawrence V. Cipriani
Date: Tue, 09 Oct 1990 20:42
13 lines
985 bytes
In article <9365:Oct910:43:4590@kramden.acf.nyu.edu>, brnstnd@kramden.acf.nyu.edu (Dan Bernstein) writes:
> Yeah. xargs should have a -0 option for taking null-separated filenames
> for its input. find should have a -print0 option for producing similar
> output.

It does, sort of:

	find . -print | xargs -i your_command '{}'

but, since the -i option executes your_command once per file it will be
very slow.
-- 
Larry Cipriani, att!cbvox!lvc or lvc@cbvox.att.com
Technical Details
Message-ID: <1990Oct9.204247.22082@cbnews.att.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!usc!apple!motcsd!mcdcup!mcdchg!att!cbnews!lvc
References: <28790001@col.hp.com> <28790002@col.hp.com> <9365:Oct910:43:4590@kramden.acf.nyu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cs.utexas.edu!usc!apple!motcsd!mcdcup!mcdchg!att!cbnews!lvc
From: lvc@cbnews.att.com (Lawrence V. Cipriani)
Newsgroups: comp.unix.shell,alt.sources.d
Subject: Re: Beware xargs security holes
Summary: see -i option to xargs
Message-ID: <1990Oct9.204247.22082@cbnews.att.com>
Date: 9 Oct 90 20:42:47 GMT
References: <28790001@col.hp.com> <28790002@col.hp.com> <9365:Oct910:43:4590@kramden.acf.nyu.edu>
Followup-To: comp.unix.shell
Organization: Ideology Busters Inc.
Lines: 13