[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shell portability question
From: |
Gary V . Vaughan |
Subject: |
shell portability question |
Date: |
Sat, 18 Sep 2004 18:35:16 +0100 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm in the process of converting libtool to use autom4te to generate
its scripts, but now a test I inherited from Gord is failing...
The failing test case says:
# Check that break and continue aren't misused in our portable shell
scripts.
$EGREP -n '[^ ]=[^ ].*(break|continue)' $scripts \
&& func_fail "cannot use \`break' or \`continue' on the same line as
an assign
ment"
But AS_SHELL_SANITIZE says:
# Find who we are. Look in the path if we contain no path at all
# relative or not.
case $[0] in
*[[\\/]]* ) as_myself=$[0] ;;
*) _AS_PATH_WALK([],
[test -r "$as_dir/$[0]" && as_myself=$as_dir/$[0] &&
break])
;;
esac
Who is correct?
Cheers,
Gary.
- --
Gary V. Vaughan ())_. address@hidden,gnu.org}
Research Scientist ( '/ http://tkd.kicks-ass.net
GNU Hacker / )= http://www.gnu.org/software/libtool
Technical Author `(_~)_ http://sources.redhat.com/autobook
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (Darwin)
iD8DBQFBTHHYFRMICSmD1gYRAmJVAJ98KLXYP3oj1EC5jP9C4BaMekEa3ACfWyxk
7xb7kk9dIf6Eci1odXRZCuU=
=UCwN
-----END PGP SIGNATURE-----
- shell portability question,
Gary V . Vaughan <=