Hello, On Tue, 01 Dec 2009, Sascha 'saigkill' Manns wrote:
I've found the Error. My value was: sed "s|^PREFIX*|PREFIX="/usr|g; \ ........sed ----" So the first " opens and the next " closes this. Now i've fixed this.
That should maybe be a PREFIX=\"%{_prefix}\" anyway. If you don't need to expand shell-variables inside the sed args, you could use '' for the outer quoting, and plain "" inside. Use multiple -e '...' and -e "..." as needed, if you need to expand inside one command. Or create a sed-script, and apply that with sed -f sedscript targetfile. Using "" as outer quotes is the second-most fragile version (no quotes, only escapes is even worse ;) replace first 'o' with the string '\1': echo 'foo' | sed s/\\\(o\\\)/\\\\1/ echo 'foo' | sed "s/\(o\)/\\\1/" echo 'foo' | sed 's/\(o\)/\\1/' Inside a sed-script, it's like inside '', but you can still use the single quotes. So, stuff like -e 's/$foo/$foo'"'"'s dog/' becomes the simple s/$foo/$foo's dog/; inside the script. Caveat: you don't have access to shell-variables. HTH, -dnh -- Well, of course it worked. You made the ritual blood sacrifice. If you bleed on a machine while working on it, it will work. Unless it doesn't. In which case, you need someone else to bleed on it as well. -- Wayne Pascoe -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org