Script won't return string with an echo.
by L_Carver from LinuxQuestions.org on (#53ZZ6)
The first BASH script (addheadline) echoes the line written to the JPEG, and this works perfectly well in "addcomment" (returning the string after the string delimiter [+ or &]).
There are lines in the first script [addheadline.txt] on lines 22 and 24 which don't seem to return the string of the headline. In Shellcheck (binary -- I haven't tried it on the site), it shows no errors, though.
Is there something I'm missing? The scripts look practically identical to me.
Carver.


There are lines in the first script [addheadline.txt] on lines 22 and 24 which don't seem to return the string of the headline. In Shellcheck (binary -- I haven't tried it on the site), it shows no errors, though.
Is there something I'm missing? The scripts look practically identical to me.
Carver.