I think this is broken and that you are being misled by bash handling PATH incorrectly.
Would it be better with using "cut"?
case "$ELEMENT" in
"~"/*) ELEMENT="$HOME"`echo "$ELEMENT" | cut -c2-` ;;
esac
Of course, it won't work in cases like "~tim/bin" but it is better than
nothing...
(sorry for the delay, I never received your answer)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

