Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 25629

Summary: sed parser broken ver 4.0.7
Product: Gentoo Linux Reporter: Andreas Faust <a.faust>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal CC: taviso
Priority: Low    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas Faust 2003-07-31 06:36:13 UTC
sed parser doesn't recognize end of parameters ..


bash-2.05b$ pwd | sed 's/\//\\\//g'
\/home\/medic\/jobs\/scripts

bash-2.05b$ TEST=`pwd | sed 's/\//\\\//g'`
sed: -e expression #1, char 9: Unknown option to `s'

bash-2.05b$ sed -V
GNU sed version 4.0.7
Comment 1 Tavis Ormandy (RETIRED) gentoo-dev 2003-07-31 07:16:56 UTC
That behaviour is correct, you should change the delimiter.

TEST=`pwd | sed 's#\/#\\\/#g'`
Comment 2 SpanKY gentoo-dev 2003-07-31 15:26:03 UTC
the issue is your quoting ... 
if you change the `` to $() it works fine 
 
thus sed is not broken