Note that there is a possible quoting error on line 88 of the original 
redboot-cmdline script:
        NEWSCRIPT="$(echo "$(${CMD})"|sed s/\"[^]]*\"/\""${CMDLINE}"\"/g)\\"

The sed command executed inside the command substitution is
        sed s/\"[^]]*\"/\""${CMDLINE}"\"/g

I think the [^]]* is unquoted, so glob expansion will be done on the whole word 
s/...[^]]*.../.../g
You'd have to be really unlucky for that to match some existing file though :P  
Usually therefore the [^]]* falls through unmodified.

(But then trying to understand non-trivial shell quoting cases always
ties my brain in knots...)

-- 
redboot-cmdline can not cope with slashes in cmdline
https://bugs.launchpad.net/bugs/462605
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to