Subject: Re: Trailing / in pathnames passed to build.sh To: Bang Jun-Young <junyoung@mogua.com> From: David Laight <david@l8s.co.uk> List: tech-toolchain Date: 08/16/2004 21:31:20
> + OPTARG=`echo ${OPTARG} | sed -e 's/\/$//'`
Aarrg multiple fork/exec sequences....
If you must strip a trailing '/' (WTF did you ever type it?)
use ${OPTARG%/} when substituting the value.
David
--
David Laight: david@l8s.co.uk