On Mon, Jul 9, 2012 at 4:03 AM, Mark Volkmann <[email protected]> wrote:
> On Jul 8, 2012, at 5:18 PM, Ben Noordhuis <[email protected]> wrote:
>> On Sun, Jul 8, 2012 at 9:09 PM, Mark Volkmann <[email protected]> 
>> wrote:
>>> I just tried it and "ax" does not report an error when the file
>>> exists. It overwrites the existing contents just like "w" does. I
>>> haven't detected any differences between these modes.
>>
>> With what OS is that? (I'll make a guess and say it's OS X.)
>
> That is correct. How are those modes different on other platforms?

For one, they work. :-)

ax and ax+ boil down to an open() system call with flags
O_APPEND|O_CREAT|O_EXCL. It seems OS X silently ignores the O_EXCL
flag when O_APPEND is set.

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to