Hi,
While working on adding multi-arch support for datefudge I've
encountered probably the same issue.
The following code snippnet
lib="datefudge.so"
libpath="/tmp/lib/datefudge"
set -- "$libpath"/*-*-*/"$lib"
[ ... snip case statement... ]
if [ ! -e "$1" ]; then
echo "Cannot find $lib in $libpath" >&2
within posh -x (version 0.9) gives:
+ lib=datefudge.so
+ libpath=/tmp/lib/datefudge
+ set -- /tmp/lib/datefudge/*-*-*/datefudge.so
+ [ ! -e /tmp/lib/datefudge/*-*-*/datefudge.so ]
however in other shells (including dash, mksh, ksh93 and the last
version of pdksh from 5.2.14-26 package) gives output simillar to:
+ lib=datefudge.so
+ libpath=/tmp/lib/datefudge
+ set -- /tmp/lib/datefudge/i386-linux-gnu/datefudge.so
+ [ ! -e /tmp/lib/datefudge/i386-linux-gnu/datefudge.so ]
Regards,
robert
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]