Le septidi 7 fructidor, an CCXXIII, Ganesh Ajjanagadde a écrit :
> >> +    if [ "$first" = true ] && $_cc -dumpversion | grep -q '^4\.2'; then

> The (-q) is for suppressing output, only yielding the exit code.
> The reason it works is because '^' matches the beginning of a line,
> not the beginning after a punctuation character.

I did not follow the rest of the thread, but I would suggest to avoid
forking external processes whenever possible:

case "$($_cc -dumpversion) in
  4.2*) ...;;
esac

Regards,

-- 
  Nicolas George
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to