Skip to content

-f flag for save that, if absent, stops overwriting files when it also doesn't have -a #6920

@webbedspace

Description

@webbedspace

Related problem

No response

Describe the solution you'd like

Offshoot of #6747 and #6904. I looked up the zsh NOCLOBBER setting, and not only does it protect mv in the manner described in that issue, but also protects piping to a file (Nushell equivalent being save). That feels like it should belong in Nushell as a vital default too.

Describe alternatives you've considered

No response

Additional context and details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:file-systemRelated to commands and core nushell behavior around the file systemcategory:enhancementNew feature or requestnotes:breaking-changesThis PR implies a change affecting users and has to be noted in the release notes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions