Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shell scripts don't handle filenames with spaces #8

Open
nrnrnr opened this issue Oct 30, 2018 · 2 comments
Open

Shell scripts don't handle filenames with spaces #8

nrnrnr opened this issue Oct 30, 2018 · 2 comments
Labels
bug would accept a PR I won't resolve this issue, but I would accept a PR that does

Comments

@nrnrnr
Copy link
Owner

nrnrnr commented Oct 30, 2018

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 nrnrnr added the bug label Oct 30, 2018
@dbosk
Copy link
Contributor

dbosk commented Oct 30, 2018

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

@nrnrnr
Copy link
Owner Author

nrnrnr commented Oct 30, 2018

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 nrnrnr added the would accept a PR I won't resolve this issue, but I would accept a PR that does label Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug would accept a PR I won't resolve this issue, but I would accept a PR that does
Projects
None yet
Development

No branches or pull requests

2 participants