Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 81870 - sed doesn't like -ie , please separate all sed options.
Summary: sed doesn't like -ie , please separate all sed options.
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL: http://www.gentoo.org/doc/en/cron-gui...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-13 09:01 UTC by uniplex
Modified: 2005-02-14 01:05 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 uniplex 2005-02-13 09:01:01 UTC
sed options should be space separated. sed -n -i -e not sed -nie etc. etc.

Reproducible: Always
Steps to Reproduce:
1. mkdir sedtest && cd sedtest
2. echo foo > testfile
3. ls
4. sed -ie 's/foo/bar/' testfile
5. ls
Actual Results:  
lieutenant ~ # mkdir sedtest && cd sedtest
lieutenant sedtest # echo foo > testfile
lieutenant sedtest # ls
testfile
lieutenant sedtest # sed -ie 's/foo/bar/' testfile
lieutenant sedtest # ls
testfile  testfilee


Expected Results:  
This isn't a software bug. It's a documentation bug on gentoo.org.
Comment 1 uniplex 2005-02-13 10:05:17 UTC
it could also be noted that -i isn't highly portable. not all BSD seds have it and gnu sed would need to be 4.x or greater.
Comment 2 SpanKY gentoo-dev 2005-02-13 15:42:32 UTC
if those crappy systems dont support -i they need to update and/or use `gsed`
Comment 3 uniplex 2005-02-13 17:56:58 UTC
ok. but -ie is still a bug in the documentation. Not many people will really want the original files left just laying around on their systems.
Comment 4 SpanKY gentoo-dev 2005-02-13 19:06:58 UTC
definitely ... do you know of any other docs with this bug ?
Comment 5 uniplex 2005-02-13 19:24:39 UTC
not off hand. Is there a way to search all the docs or do we need to make one? :)
Comment 6 Xavier Neys (RETIRED) gentoo-dev 2005-02-14 01:04:22 UTC
cron-guide.xml is the only one
Comment 7 Xavier Neys (RETIRED) gentoo-dev 2005-02-14 01:05:41 UTC
Fixed. Thanks for reporting.