Greg a écrit :
> Except that HP-UX 10.20 and HP-UX 11.11 don't have readlink(1).
> (Maybe it's added in 11.2x? I don't know.)
You're right. I must admit I made a concession to some GNU coreutils tools on
the platform. I once used some ls -l "$SCRIPTS" | sed -e 's/.* -> //' magic to
replace it
Marc a écrit :
>source $(dirname "$0")/functions.sh
I usually begin all my scripts with this beast:
absolutiseScripts() { SCRIPTS="$1" ; echo "$SCRIPTS" | grep -q ^/ ||
SCRIPTS="`dirname "$2"`/$SCRIPTS" ; } ; absolutiseScripts "`command -v "$0"`"
"`pwd`/." ; while [ -h "$SCRIPTS" ] ; do a
Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: darwin8.11.0
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc'
-DCONF_OSTYPE='darwin8.11.0' -DCONF_MACHTYPE='powerpc-apple-darwin8.11.0'
-DCONF_VENDOR='apple' -DLOCALEDIR='/usr/loc
Configuration Information [Automatically generated, do not change]:
Machine: powerpc
OS: darwin8.11.0
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc' -
DCONF_OSTYPE='darwin8.11.0' -DCONF_MACHTYPE='powerpc-apple-
darwin8.11.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/