Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden. Du solltest ein Upgrade durchführen oder ein alternativer Browser verwenden.
That appears even better, but it imposes the problem of / being part of some of the arguments to modunreg. When changing to
Code:
sed -i "\@^$2|@d" /mod/etc/reg/cgi.reg
the problem of the @ (or any other character other than /) being allow in unix filenames arises.
So to get it 100% correct, the arguments would have to be escaped before being fed to sed, right? Or do you see another solution?
That would be hardly maintainable. If the busybox sh would do some of the fancy substitutions bash does, we could do something like
Code:
sed -i "\@^${2//\//\\\/}|@d" /mod/etc/reg/cgi.reg
.
I don't think we should drop the support for / in arguments we have now, and we should try to avoid implementing other pitfalls. But maybe picking some other character that's unlikely to be used in arguments may be ok?