noweb icon indicating copy to clipboard operation
noweb copied to clipboard

Shell scripts don't handle filenames with spaces

Open nrnrnr opened this issue 7 years ago • 2 comments

At least noweave, and probably others, don't handle filenames with spaces.

I'm reluctant to introduce a dependency on bash, but I would need some help to figure out how to manage arrays in a POSIX standard shell.

nrnrnr avatar Oct 30 '18 14:10 nrnrnr

StackOverflow to the rescue ;-) This GitHub repo that the third answer links to seems promising (PoC of arrays in POSIX shells).

dbosk avatar Oct 30 '18 15:10 dbosk

Clever. Missing here is the ability to turn the array elements into an argument vector, as in the ksh/bash extension "${a[@]}".

I may have to resort to some form of eval.

I'm unlikely to fix this issue, but I would welcome a PR.

nrnrnr avatar Oct 30 '18 15:10 nrnrnr