3 ms·
> “And how many hours would you require to implement and debug that C program?” asked Nubi. How about "How many hours would you require to write the shell scri
by arendtio 3y ago
> “And how many hours would you require to implement and debug that C program?” asked Nubi.
How about "How many hours would you require to write the shell script so that it handles all allowed file names appropriately?". As far as I am concerned the classes of errors are certainly different, but shell scripts have their own pitfalls.
Just yesterday I came across a one-liner that didn't work as soon as the filename had a space in the filename.
- shhsshs 3y agoThen you are not using enough quotes in your shell scripts.
- teddyh 3y agoMost people know about quotes to handle spaces. The real trick is to handle file names which start with a hyphen. (And if you really want to level up, write your scripts to handle file names with embedded newlines.)
- dfinninger 3y agoYeah… I just pull up Finder and delete it there.
- sceadu 3y agothe script or the input file? :)