bash error tip `"' -> {
Posted: 19 Nov 2023, 03:22
If you run a script you've tweaked and get this:Don't waste time looking for `"' or each character individually. The fix was replacing "${DRV" with "$DRV" on line 12.
It took me 2 hrs to find the fix. A dumb copy & paste error.
A more useful error message would have been:
Code: Select all
guest@porteus:~$ ./mkmods/mkmod50nemobkmks.sh
./mkmods/mkmod50nemobkmks.sh: line 82: unexpected EOF while looking for matching `"'
./mkmods/mkmod50nemobkmks.sh: line 114: syntax error: unexpected end of file
guest@porteus:~$

It took me 2 hrs to find the fix. A dumb copy & paste error.

A more useful error message would have been:
Code: Select all
./mkmods/mkmod50nemobkmks.sh: line 82: unexpected EOF while looking for matching }