Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
leviathan
· 7y ago · 0 comments
I've always done it as: `> file`
Comments
[–]
hultner
7y ago
That's actually very nice, I never thought about that one.
[–]
hwj
7y ago
Unfortunately, this doesn't work in fish:
> fish: Expected a command, but instead found a redirection
[–]
danaur
7y ago
Right but I don't think anyone is really concerned if it runs in fish. Fish is non standard and doesn't try to adhere to bash. If we want to write fish shell scripts we can do that elsewhere
[–]
jgtrosh
7y ago
Funny how the same sentence applies to bash wrt POSIX shell in other contexts