Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
symkat
· 13y ago · 0 comments
I do this in terminals:
cat > /dev/null
Type whatever you want, then control-D to end.
Comments
[–]
oftenwrong
13y ago
That is a UUOC. This...
> /dev/null
...does the same thing.
[–]
tedunangst
13y ago
No, it doesn't. It just drops you to another shell prompt.
[–]
jasonm23
13y ago
Not in zsh it doesn't. (tip: it's a zsh thing.)
[–]
tedunangst
13y ago
oh, well, unspecified shell snippets are usually assumed to be some bourne derivative, in which case the cat is necessary.