Quoting is the problem, particularly handling of
\\ inside double quotes. Try
Code:
echo "s:-o /'-p -- \\u'/:--autologin wizard:"
and you'll see what I mean. Adding another backslash or two would help:
Code:
echo "s:-o /'-p -- \\\u'/:--autologin wizard:"
Besides, there are no forward slashes (
/) in the string you're trying to replace, but they are present in the sed expression?