You are not logged in.
Pages: 1
I was looking at rc.sysinit just now, and noticed use of the redirection operator ">|"
Google doesn't return much for me, I guess it doesn't like those characters.
What does >| do?
Last edited by fukawi2 (2011-02-27 08:23:57)
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
From bash(1) manpage:
Redirecting Output
[...]
The general format for redirecting output is:
[n]>word
If the redirection operator is >, and the noclobber option to
the set builtin has been enabled, the redirection will fail if
the file whose name results from the expansion of word exists
and is a regular file. If the redirection operator is >|, or
the redirection operator is > and the noclobber option to the
set builtin command is not enabled, the redirection is
attempted even if the file named by word exists.
Offline
not sure about bash but i know in zsh it's just like > but truncates to zero first and forces clobbering even if a clobber option is unset.
Offline
Ah, make sense then.. Thanks guys
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Pages: 1