I have this code, which I do want for replacement of a specific pattern, but not multi in-place replacement.
echo "ss qq" | sed "s/ss/qq/g; s/qq/dd/g;"
The result is
dd dd
and wish it would be
qq dd
Also via "looping" we get the same result.
echo "ss qq" | sed ":loop; s/ss/qq/g; s/qq/dd/g; t loop;"
its petty, very disappointing bug !!
Any suggestion why it's happening?