with
a=/abc
I need to backslash protect the `/' in my script for which I do a pattern
match/substitute. problem:
I see identical behavior of
echo ${a//\//\\/}
but different behaviour of
echo ${a//\//\/}
with ksh93 on the one hand and bash/zsh on the other: ksh in both cases
outputs `\/abc' (which is what I want to achieve) while bash/zsh only do
this in the first case while yielding the unmodified string `/abc' in the
second case. question: which behavior is the correct one?
thanks
j.
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users