Re: strange behaviour: sed follows symlink when reading but not when writing on -i and without --follow-symlinks

John Cowan <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Christoph Anton Mitterer scripsit:

> Now obviously there is --follow-symlinks... in which case, the
> sylink is not removed but correctly
> But even if one argues, that the above behaviour is desired (which
> is a strange default IMHO), it's questionable why the symlink is
> followed (without --follow-symlinks) for reading, but not for
> writing.

Because it's the kernel rather than sed that does the following in the
read case.

-- 
John Cowan <[email protected]>             http://www.ccil.org/~cowan
Sir, I quite agree with you, but what are we two against so many?
    --George Bernard Shaw,
         to a man booing at the opening of _Arms and the Man_
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.