Quoth Jonathan Wilson: > On Thursday 17 January 2008 10:48:41 Johannes Wiedersich wrote: > > I encountered something rather odd and in my eyes disturbing: if I edit > > a symlinked file with an ordinary editor (nano, kate, ...) the editor > > edits the file instead and leaves the symlink intact. > > I Tried this on SuSE and it behaves the same. If it's a bug (sure seems odd > to > me) it must be in the upstream sed, not Debian's packages.
I don't think it's a bug, but a feature. And a workaround is quite easy to implement, if you need it (via file or ls -l and a small sed script or whatever alternative there might be in UNIX-world). Though it might be confusing to the beginner, when I point sed to a _filename_ I want the resulting file to be written to *that* file - that's surely not what everyone wants, but at least it dodges semantic ambiguity and makes things more predictable. As I said, circumventing this isn't really much of an issue, so that shouldn't really pose any problems. Aleks
signature.asc
Description: Digital signature