Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25629 - sed parser broken ver 4.0.7
Summary: sed parser broken ver 4.0.7
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Low normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-31 06:36 UTC by Andreas Faust
Modified: 2003-07-31 15:26 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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