
Porteus 5.0 sed
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Porteus 5.0 sed
sed defaulted to -i in 4.0. In 5.0 it does not so changes to files are not kept. 

- ncmprhnsbl
- DEV Team
- Posts: 4256
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
Porteus 5.0 sed
so you're saying that when editing a file -i (--in-place) wasn't needed? don't think that's anything we've done... can't see how an alias would work..
can only think that it's a change in behaviour for sed itself..
ie. not our bug, more likely an upstream feature/change..
can only think that it's a change in behaviour for sed itself..
ie. not our bug, more likely an upstream feature/change..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
- Ed_P
- Contributor
- Posts: 8908
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
Porteus 5.0 sed
When editing via sed a desktop file in 4.0 I did not use the -i option and the file was updated. In 5.0rc2 the same script wasn't changing the file and I couldn't figure out what the problem was. It took me awhile to try the -i option but it solved the problem.
Quite possible, and why I didn't post this in the bug thread, but it's something 5.0 users should be made aware of. imoncmprhnsbl wrote: ↑26 Aug 2020, 03:24can only think that it's a change in behaviour for sed itself..
ie. not our bug, more likely an upstream feature/change..
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Porteus 5.0 sed
Is that behaviour true for the sed as used in 5.0rc1 or only for the 5.0rc2 version?
I would have to look up my scripts that use sed for changing files, since I do not recall what syntax each and every one exactly used.
I presume using "-i" would still work okay when the script is run by Porteus 4.0 sed, and it should also work (and according to you: be needed) for 5.0 sed.
Cheers!
Yours Rava
Yours Rava
- Rava
- Contributor
- Posts: 5424
- Joined: 11 Jan 2011, 02:46
- Distribution: XFCE 5.01 x86_64 + 4.0 i586
- Location: Forests of Germany
Porteus 5.0 sed
^
I just wonder, did sed call -i optional but recommended in older versions, or did they switch from optional to mandatory without prior warning?
I just wonder, did sed call -i optional but recommended in older versions, or did they switch from optional to mandatory without prior warning?
Cheers!
Yours Rava
Yours Rava