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

>a missing $ in a shell script moved everything to the file i

I've always had anxiety when running a shell script, this is a perfect example of why



I always wrap the actual cp/mv/rm etc in echo first before actually running it e.g. running echo "mv $src i" first would have immediately highlighted the problem visually.




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

Search: