4 ms·
Show HN: Eyeball: Detect and understand changes in a program's output
- yorwba 9y agoHave you tested your script with files like " this has spaces .out"? I think you are missing some quotes around your variable expansions.
- martinpllu 9y agoWow, eagle eyes. Thank you. Any tips on how to deal with quotes around variable expansions in general? Should I quote each usage of a variable or does it depend on context?
- yorwba 9y agoQuoting each usage of a variable is almost always correct. The only context where it isn't correct is when you need word-splitting to occur, which is almost never. Even "$@" is special-cased to do the right thing and quote each individual parameter, instead of the whole list.