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

cmd's `&&` is the equivalent of bash's `;`. bash's `&&` has no equivalent in cmd.

Edit: Never mind, I'm apparently wrong.



On Windows 7; note the lack of version information from Java:

> rm test.txt && java -version

rm: cannot unlink entry "test.txt": The system cannot find the file specified.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: