On Tue, 2007-04-17 at 17:37 +0200, Naga wrote: > is it allowed with a grep call in portage (ebuild.sh)? > The reason I'm asking is because I was thinking of a way of handling non > standard file suffixes to standard archive formats (as in bug: 174910 [1]). > > The way I was thinking of was to run "file" on the file and compare to the > suffix (if that is nessesary) and then chose a program based on the result. > > [1] http://bugs.gentoo.org/show_bug.cgi?id=174910
Unpack is outside global scope, so that's allowed; in any case, you're already forking for file. Using grep is pointless, though; use case. Ed -- [EMAIL PROTECTED] mailing list