Message ID | ydd7h7xnc08.fsf@manam.CeBiTec.Uni-Bielefeld.DE |
---|---|
State | New |
Headers | show |
> This patch fixes this by decoupling type/type -p from extracting the > last field. > > Bootstrapped on i386-pc-solaris2.10 and i386-pc-solaris2.11. > > Ok for mainline, 4.6 and 4.5 branches (where the offending patch has > been installed)? OK, but if this new patch introduces new regressions, please revert this change and the previous one, thanks. Arno
Arnaud Charlet <charlet@adacore.com> writes: >> This patch fixes this by decoupling type/type -p from extracting the >> last field. >> >> Bootstrapped on i386-pc-solaris2.10 and i386-pc-solaris2.11. >> >> Ok for mainline, 4.6 and 4.5 branches (where the offending patch has >> been installed)? > > OK, but if this new patch introduces new regressions, please revert this > change and the previous one, thanks. I will. The fragility of this stuff suggests that I should revisit and finish my ACATS via DejaGnu patch ;-) Thanks. Rainer
diff --git a/gcc/testsuite/ada/acats/run_acats b/gcc/testsuite/ada/acats/run_acats --- a/gcc/testsuite/ada/acats/run_acats +++ b/gcc/testsuite/ada/acats/run_acats @@ -14,8 +14,8 @@ fi # Fall back to whence which ksh88 and ksh93 provide, but bash does not. which () { - path=`type -p $* 2>/dev/null | awk '{print $NF}'` && { echo $path; return 0; } - path=`type $* 2>/dev/null | awk '{print $NF}'` && { echo $path; return 0; } + path=`type -p $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; } + path=`type $* 2>/dev/null` && { echo $path | awk '{print $NF}'; return 0; } path=`whence $* 2>/dev/null` && { echo $path; return 0; } return 1 }