Bash feature in custom shell script not working
Maik Qualmann
metzpinguin at gmail.com
Sun Jul 21 11:34:32 BST 2024
The placeholders $INPUT and $OUTPUT are replaced with real absolute file paths,
also escaped to handle spaces.
The script is primarily intended to enable external terminal programs to run
image processing operations in a batch.
Because of your curly brackets, $INPUT is not found in the script and cannot
be replaced.
Maik
Am Sonntag, 21. Juli 2024, 11:44:56 MESZ schrieb Florian Zimmermann:
> (Debian testing, digiKam 8.3.0, Batch Queue Manager -> User Shell Script)
>
> I hope below is self-explanatory:
>
> abc=${INPUT:3} # this is a bash feature to sub-string from offset 3, it
> works fine in a terminal echo $abc >>/tmp/f # NOK, it writes an empty
> string, why? echo $INPUT >>/tmp/f # OK echo $SHELL >>/tmp/f #OK for
> proving I'm really in a bash
>
> What could I have missed? Thanks!
More information about the Digikam-users
mailing list