If this idea is accepted, I'd like to propose "!>" and "!^" as the
overwriting versions of the IO redirect operators, the exclamation point or
"bang" signifying "overwrite!". From a quick glance at the fish docs, "!"
currently has no special meaning in the shell, so it's available for this
use.

- Chris Rebert


On 10/17/07, Philip Ganchev <[EMAIL PROTECTED]> wrote:
>
> On 10/17/07, Fernando Canizo <[EMAIL PROTECTED]> wrote:
> [when the file exists, you can either]
> > a. overwrite the file (current default, and default for others shells
> too)
> > b. append to the file
> > c. refuse to write to the file
> >
> [...] 'c' is what I think should be the
> > default for a shell which claims to be "friendly" and to be consistent
> > with this sentence: "But even well designed, powerful programs sometimes
> > need to be updated to remove some of the old mistakes."
>
> In other words, it's as if the noclobber option is hardwired to be
> set, and another redirect operator is created for overwriting.  I
> think this is better than overwriting by default.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to