resty icon indicating copy to clipboard operation
resty copied to clipboard

Using `|` operator to ignore noclobber setting

Open pedroxs opened this issue 7 years ago • 4 comments

This allows to overwrite existing files on output redirect with >.

Fixes issues: https://github.com/micha/resty/issues/78 and https://github.com/sorin-ionescu/prezto/issues/1527

pedroxs avatar Jan 15 '18 20:01 pedroxs

I'm not a collaborator on this repo, but for anyone interested in the relevant portions of the docs, here they are:

  • http://zsh.sourceforge.net/Doc/Release/Redirection.html "Same as >, except that the file is truncated to zero length if it exists, even if CLOBBER is unset."
  • https://www.gnu.org/software/bash/manual/html_node/Redirections.html "If the redirection operator is ‘>|’, or the redirection operator is ‘>’ and the noclobber option is not enabled, the redirection is attempted even if the file named by word exists."

belak avatar Feb 21 '18 05:02 belak

Updated to add support for HTTP/2

pedroxs avatar Mar 19 '18 14:03 pedroxs

Well if that's the case I can revert the HTTP/2 commit and wait for this to merge before opening another PR

pedroxs avatar Mar 21 '18 21:03 pedroxs

Is this repo abandoned? It's been a full year already.

pedroxs avatar Feb 07 '19 18:02 pedroxs