NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

should <> redirection in /bin/sh clobber?


In ksh, the following:
        echo abc >abc
        printf A 1<>abc
gets me a file with "Abc\n" in it.
In sh, abc gets clobbered, and I get just "A" (also when noclobber
mode is set). Am I right in thinking this is a bug? (I don't see a
way to actually read anything from the file.)

kind regards

Home | Main Index | Thread Index | Old Index