$ ./gnulib-tool --help 2>&1 | head -n3
alias: Not found
unalias: Not found
Usage: gnulib-tool --list

Using a more detailed trace, I see:

# Because of this, we have to play strange tricks with have_echo, to ensure
# that the top-level statement containing the test starts after the 'alias'
# command.
if test -z "$have_echo"; then
bsd_echo ()
{
cat <<EOF
$*
EOF
}
alias echo=bsd_echo 2>/dev/null
fi
+ test -z
+ alias echo=bsd_echo
alias: Not found

But I haven't yet tried to disentangle the echo-setting logic of gnulib-tool for a correct tweak that avoids echo on IRIX's /bin/sh, without using unsupported [un]alias. And unfortunately, the IRIX /bin/sh lacks printf (and print), and interprets backslashes passed to echo by default, so on that platform, sane printing requires forking of external processes (cat or printf).

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Reply via email to