This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/49511] [4.6 Regression] acats test setup fails on HP-UX using posix shell


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49511

--- Comment #2 from dave at hiauly1 dot hia.nrc.ca 2011-06-27 17:15:23 UTC ---
> could you please run the exact commands used in the run_acats which
> function and report the results:
> 
> type -p gnatmake 2>/dev/null
> echo $?
> 
> type gnatmake 2>/dev/null
> echo $?
> 
> whence gnatmake 2>/dev/null
> echo $?

505 (hiauly1)dave> /bin/sh
$ type -p gnatmake 2>/dev/null
gnatmake is /opt/gnu/gcc/gcc-3.3.4/bin/gnatmake
$ echo $?
0
$
$ type gnatmake 2>/dev/null
gnatmake is /opt/gnu/gcc/gcc-3.3.4/bin/gnatmake
$ echo $?
0
$
$ whence gnatmake 2>/dev/null
/opt/gnu/gcc/gcc-3.3.4/bin/gnatmake
$ echo $?
0

522 (hiauly1)dave> echo $SHELL
/usr/local/bin/bash
523 (hiauly1)dave> type -p gnatmake 2>/dev/null
/opt/gnu/gcc/gcc-3.3.4/bin/gnatmake
524 (hiauly1)dave> echo $?
0
525 (hiauly1)dave> type gnatmake 2>/dev/null
gnatmake is hashed (/opt/gnu/gcc/gcc-3.3.4/bin/gnatmake)
526 (hiauly1)dave> echo $?
0
527 (hiauly1)dave> whence gnatmake 2>/dev/null
528 (hiauly1)dave> echo $?
127

`which' is available on HP-UX in both standard POSIX shell and bash:

529 (hiauly1)dave> /bin/sh
$ which gnatmake 2>/dev/null
/opt/gnu/gcc/gcc-3.3.4/bin/gnatmake
$ echo $?
0
$
530 (hiauly1)dave> echo $SHELL
/usr/local/bin/bash
531 (hiauly1)dave> which gnatmake 2>/dev/null
/opt/gnu/gcc/gcc-3.3.4/bin/gnatmake
532 (hiauly1)dave> echo $?
0

Dave


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]