I got the following script:
#!/bin/bash -x
FNAME="FILE NAME"
cat ${FNAME}"
and a file
$ ls FILE\ NAME
FILE NAME
and no clue how to quote. Running -x gives
+ FNAME='FILE NAME'
+ cat FILE NAME
cat: FILE: No such file or directory
cat: NAME: No such file or directory
This is a testcase for running openssl with -subj containing spaces in a bash script.
There is a solution, but I can't see it.
Kind Regards Maniac