On 30-10-2012 18:38, Pontus Lurcock wrote:
On Tue 30 Oct 2012, Bill Meahan wrote:

On 10/30/2012 01:20 PM, Hans Hagen wrote:
filename 2>&1

This has been the correct Bourne shell (POSIX) syntax for many
years. I think it goes all the way back to Bell Labs V7 IIRC

instead of &>filename.

is a "bash-ism"

FWIW, Debian and Ubuntu have a package ‘devscripts’ which includes a
program ‘checkbashisms’ to catch such things (Ubuntu started using
dash as the default sh back in 2006). Ubuntu also has some advice
on strict-POSIX shell scripting: 
https://wiki.ubuntu.com/DashAsBinSh#I_am_a_developer._How_can_I_avoid_this_problem_in_future.3F

This also needs checking (in setuptex):

if [ z"$BASH_SOURCE" != z ]; then
        SCRIPTPATH="$BASH_SOURCE"
elif [ z"$KSH_VERSION" != z ]; then
        SCRIPTPATH="${.sh.file}"
else
        SCRIPTPATH="$0"
fi

OWNPATH=$(cd -P -- "$(dirname -- "$SCRIPTPATH")" && pwd -P)


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to