|
From: | Eric Blake |
Subject: | noisy gnulib-tool on IRIX |
Date: | Tue, 07 Sep 2010 15:29:57 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2 |
$ ./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 address@hidden +1-801-349-2682 Libvirt virtualization library http://libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |