Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the >! operator with the >| operator that is more compliant with the POSIX standard #9

Merged
merged 1 commit into from
Jun 19, 2020

Conversation

liby
Copy link
Contributor

@liby liby commented May 28, 2020

Although the >! operator makes the code work, this implementation does not conform to the POSIX standard.

The POSIX compliant way to overwrite files without prompting is to use >| or >>| and this will work in any shell.

For information see here.

@tamcore
Copy link
Owner

tamcore commented Jun 18, 2020

If you have a look at #3 and #4, I'd argue that we can leave it as it is, as compatibility with any other shell besides zsh isn't really required here.

@tamcore tamcore merged commit 458080d into tamcore:master Jun 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants