can we have a similar option for a hard link file?

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to sed in Ubuntu.
https://bugs.launchpad.net/bugs/367211

Title:
  sed -i destroys symlink

Status in sed package in Ubuntu:
  Fix Released

Bug description:
  When using 'sed -i' on a symlink the symlink gets destroyed.
  Observe:

  % ls -l myfile symlink
  -rw-rw-r-- 1 miekg miekg 12 Apr 26 10:53 myfile
  lrwxrwxrwx 1 miekg miekg  6 Apr 26 10:53 symlink -> myfile

  # do an edit
  % sed -i 's/hello//' symlink

  % ls -l myfile symlink
  -rw-rw-r-- 1 miekg miekg 12 Apr 26 10:53 myfile
  -rw-rw-r-- 1 miekg miekg  7 Apr 26 10:54 symlink

  And gone is your symlink.

  This either a feature or a bug :)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sed/+bug/367211/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to