Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ok, I should read more carefully. I thought the article uses cat > file followed by ^D to create empty files.

Of course when having some text cat > file is just fine.



No, you can remove 'cat' on most shells:

    > file


What shell? I'm running bash 4.2.20(2)-release, and "> file" is behaving like "touch file".


You're right, I was mistaken. It's just in Z shell.


You mean there are other shells?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: