[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

(OT) Re: Need to adjust based on svn:execute

From: Steve Greenland <steveg_at_lsli.com>
Date: 2005-02-14 17:48:48 CET

On Fri, Feb 11, 2005 at 08:22:02PM -0500, Buddy Burden wrote:
> The advantage of each is that it correctly handles filenames with
> spaces, which xargs apparently doesn't (at least on my machine).

.... | xargs --replace=XXX chmod a+x \'XXX\'

(--replace is probably GNU only, but the '-i' equivalent is more
widespread)

However, this also invokes chmod once per file, so you don't gain
anything over "each". But it might be useful if you find yourself on a
machine w/o your custom command.

The other way, if you can coerce your input to end each filename in '\0'
rather than space/newline, is to use the '--null' (or '-0') option for
xargs.

Steve

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 14 17:52:39 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.