Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
artursapek
on March 22, 2021
|
parent
|
context
|
favorite
| on:
The absolute worst scenario happened
>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
noisy_boy
on March 22, 2021
[–]
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:
I've always had anxiety when running a shell script, this is a perfect example of why