Project

General

Profile

Actions

Bug #673

closed

sed -i argument temp file should be optional

Added by Andrew Stormont almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2011-01-27
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:
External Bug:

Description

This is valid with gnu sed:

sed -i s/oldtext/newtext/g /my/sed/file

But for the illumos implementation this must be changed too:

sed -i '' s/oldtext/newtext/g /my/sed/file

because -i expects either '' or that path to a backup file.


Related issues

Is duplicate of illumos gate - Bug #586: sed -i should take an "optional" argumentResolvedYuri Pankov2010-12-29

Actions
Actions #1

Updated by Garrett D'Amore almost 13 years ago

  • Status changed from New to Closed

This is a duplicate of 586.

Actions

Also available in: Atom PDF