https://bz.apache.org/bugzilla/show_bug.cgi?id=60562

--- Comment #23 from jwadam...@gmail.com ---
Would prefer something specific to detect bourne-shell but I can't see any
environment variables that would let us know if the ant script was running
under heirloom-bourne. :-(

Worst case we can test via uname skip the portions that do the adding/stripping
of arg padding?

----------------------
BOURNE_SHELL=false
OS=`uname -s`
REL=`uname -r`
if [ "$OS" = SunOS -a "$REL" = "5.10" ]
then
    BOURNE_SHELL=true
fi

if [ $BOURNE_SHELL ]
then
    esc_arg="$arg"
else
    esc_arg="X${arg}X";
fi

# TODO do sed replacement statement on esc_arg, in bourne-shell this will wind
up trimming whitespace due to subshell use.

if [ $BOURNE_SHELL != "true" ]
then
    esc_arg="${esc_arg#X}"
    esc_arg="${esc_arg%X}"
fi

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to