"Gary V. Vaughan" <[EMAIL PROTECTED]> writes: > You misunderstood; my intent was to ensure exactly one trailing slash for easy > concatenation further down in the code.
Ah, sorry, in that case it should be something like this. (This runs faster on shells where "test" is not built in.) case $ac_config_libobj_dir in */) ac_libobj_dir=`expr "X$ac_config_libobj_dir" : 'X\(.*[^/]/\)'` ;; .) ac_libobj_dir= ;; *) ac_libobj_dir=$ac_config_libobj_dir/ ;; esac > $ echo 'abc\def' | sed 's,/*$,/,' > abc\def Surely you meant "abc\def/". (I guess my consolation is that I wasn't the only one confused here. :-)
