<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>(Debian testing, digiKam 8.3.0, Batch Queue Manager -> User Shell Script)</p>
<p>I hope below is self-explanatory:
</p>
<p>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</p>
<p>What could I have missed?
Thanks!
</p>
<p><style type="text/css">p, li { white-space: pre-wrap; }</style></p>
</body>
</html>