[LLVMdev] Fix for "Bad fd number" error in test_debuginfo.pl

Andy Gibbs andyg1001 at hotmail.co.uk
Wed Jul 18 07:29:09 PDT 2012


Hi,

Attached is a simple patch to fix a "Bad fd number" error in test_debuginfo.pl which has come about because of an invalid redirection in the system call.

Normally the stdout+stderr to file redirection is "&>" (not ">&" as in the script!), but I have found this to be unsupported on all shell types (I think it was introduced in bash at version 4, for example), so the more portable "> file 2>&1" has been substituted.

Cheers
Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix.diff
Type: application/octet-stream
Size: 638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120718/f0c05cf3/attachment.obj>


More information about the llvm-dev mailing list