[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a note on notations (I'm going to be sorry I sent this to the list)
> while we're on the topic of syntax, anybody got a suggestion for the hook
> function that goes with the new <>?
> %openrw
> %openboth
> %open-modify
> all seem bad? anybody got something nice and catchy?
The semantics of <> in sh/ksh are open read/write *and* truncate, so
I'd suggest %open-create. While we're at it, let's go not just one, but
two steps further.
Sugar Function Meaning
----- -------- -------
<> %open-create open rw, truncate
>< %open-write open rw, no truncate
<>> %open-append open rw, no truncate, all writes at end
The heck with this minimalism stuff, anyway. :-)
Arnold
P.S. I knew I had an asbestos suit around here somewhere....