quilt-dev
[Top][All Lists]
Advanced

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

Re: [Quilt-dev] [PATCH] user-definable tail and grep


From: Andreas Gruenbacher
Subject: Re: [Quilt-dev] [PATCH] user-definable tail and grep
Date: Fri, 16 Sep 2005 00:40:08 +0200
User-agent: KMail/1.7.1

On Friday 16 September 2005 00:05, Gary V. Vaughan wrote:
> The normal approach is to allow the script user to override paths to
> particular commands in the environment.  I was quite surprised to
> see @COMMAND@ substitution hard coding scattered across the code rather
>
> than something like this at the top of patchfns:
> : ${TAIL="@TAIL@"}
>
> Then for the rest of the scripts:
>
> "$TAIL" -n 42 ...
>
> Is this just an oversight?  Or is there a reason for that design?

What's the benefit of "$TAIL" over @address@hidden (I'd rather use $TAIL 
without 
quotes to allow passing in arguments/etc, too.) IMHO it's a mess either way, 
and once we have @FOO@ substitutions we can as well replace them all over the 
place.

On the other hand, adding a directory to the front of path in patchfns would 
allow us to get rid of most @address@hidden in the scripts.

-- Andreas.




reply via email to

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