bug-cvs
[Top][All Lists]
Advanced

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

sanity.sh find_tool() revisions (was Re: CVS update: /ccvs/src/)


From: Derek Robert Price
Subject: sanity.sh find_tool() revisions (was Re: CVS update: /ccvs/src/)
Date: Thu, 04 Nov 2004 16:30:13 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark D. Baushke wrote:

>Actually, more like:
>
> find_tool awk nawk gawk : version_test awktest1 awktest2 akwtest3
>
>where version_test, awktest1, awktest2 and awktest3 were three tests
>that the command MUST pass in order for find_tool to consider it as
>a valid tool to use.
>
>My example below does not use this approach, instead I add a
>
>require_id () function that tests the arguments to id against all
>versions of id that seem reasonable.

Okay. I think I like your proposed find_tool slightly better than a
bunch of separate require_* functions and it sounds doable. It should
probably be dependant on Which (maybe=; while test -n "$1" && test ":"
!= $1; do maybes="$maybes `Which -a $1`"; shift; done; test -n "$1" &&
shift; for trytool in $maybes; do ...). Also, if it can do real
tests, the version_test is actually counter-productive, I think.

Cheers,

Derek
- --
*8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBip9kLD1OTBfyMaQRAmLwAKCrc42v+QkhAHz2UHd3e6AoAolouQCg5Rit
mXE94jlYlgoQDYDD4EthUb4=
=skwy
-----END PGP SIGNATURE-----





reply via email to

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