Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: FPATH/autoload still strange in -dev-21



On Apr 6,  4:56pm, Zefram wrote:
} Subject: Re: FPATH/autoload still strange in -dev-21
}
} Bart Schaefer wrote:
} >} Make `2>& <non-number>' be silently treated like `2> <non-number>'?
} >
} >I'd vote for that anyway.
} 
} I wouldn't.  At the moment it's perfectly clear: &> does two redirections.
} [...]  The expected behaviour of "2>& foo" is to put two copies of
} stderr into the file [...]

Hmm.  "2>& foo" does indeed do so, but "2&> foo" only makes one copy.  Is
that also expected?

} You're talking about adding an exception, which really *will* confuse
} people.

I don't feel especially strongly about it either way, but why would
anyone reasonably expect to get two dups of the same descriptor from a
single redirection operator?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



Messages sorted by: Reverse Date, Date, Thread, Author