can we have a similar option for a hard link file?
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/367211
Title:
sed -i destroys symlink
To manage notifications about this bug go to:
https://bugs.lau
Fixed in karmic thanks to update to sed-4.2.1
** Changed in: sed (Ubuntu)
Status: New => Fix Released
--
sed -i destroys symlink
https://bugs.launchpad.net/bugs/367211
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bu
sed 4.2 will provide --follow-symlinks, for now it is a feature that you
cannot turn off. Sorry.
--
sed -i destroys symlink
https://bugs.launchpad.net/bugs/367211
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing l
The following "patch" fixed the problem. It does so by looking at the target.
If it is an symlink the tmp file will be copied
to the target of the symlink. Patch also included as attachment.
elektron.m% diff -ur sed-4.1.5/lib/utils.c sed-4.1.5-modified/lib/utils.c
--- sed-4.1.5/lib/utils.c
This is due to using rename(), in the file lib/utils.c (is sed's source) at
line 324 in the function:
ck_rename (from, to, unlink_if_fail):
int rd = rename (from, to);
from is now a tmp-file and to is the original file. According to the
manpage of rename(2):
If oldpath refers t