💻 Software
How do I override the bash "noclobber" option?
Fresh5 days ago
Mar 15, 202613030 viewsConfidence Score0%
0%
Problem
The option prevents one from overwriting files with redirection. But sometimes I really want to. has a similar option and it can be over-ridden by putting a before the filenames. Is there any way to do this with ?
Error Output
bash
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I override the bash "noclobber" option?
Low Risk
Yes. Append to the redirection operator to form . This is in § 3.6.2 of the Bash Reference Manual, q.v. If the redirection operator is ‘>’, and the noclobber option to the set builtin has been enabled, the redirection will fail if the file whose nam…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix