Y
Hacker News
new
|
ask
|
show
|
jobs
by
leviathan
2586 days ago
I've always done it as: `> file`
2 comments
hultner
2586 days ago
That's actually very nice, I never thought about that one.
link
hwj
2586 days ago
Unfortunately, this doesn't work in fish:
> fish: Expected a command, but instead found a redirection
link
danaur
2586 days 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
link
jgtrosh
2585 days ago
Funny how the same sentence applies to bash wrt POSIX shell in other contexts
link