On 6/23/20 3:21 PM, L A Walsh wrote: > I do: > > set output > echo ">$1<" >> output< > output=""printf ${1:+-v $1} "%s:%s" 23 myproc > > > > -Bash: printf: ` output': not a valid identifier
It looks like word splitting on the result of ${1:+-v $1} isn't taking place. That might be due to IFS; or because this isn't an accurate representation of your actual script, which includes quoting; or because the character between the `v' and `$' isn't a space. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/