info-cvs
[Top][All Lists]
Advanced

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

Re: refactoring when using CVS


From: Noel Yap
Subject: Re: refactoring when using CVS
Date: Fri, 22 Feb 2002 07:20:01 -0800 (PST)

--- Kaz Kylheku <address@hidden> wrote:
> That's terrible! What if the resulting command line
> violates the
> systems's environment passing limit? Of course, you
> want:
> 
>         find . -name '*.java' -print | xargs javac
> 
> hopefully, none of the names contain spaces and
> newlines, but I wouldn't
> put any such stupidity past Java programmers, so
> better use GNU tools:
> 
>       find . -name '*.java' -print0 | xargs -0 javac

Keep in mind that since xargs has a size limit, you
may wind up doing a little more recompilation than
necessary.  I prefer the back quote method under a
shell with no command length limitation and forbidding
spaces and special characters in file names.

Noel

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]