You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://docs.python.org/3/library/shlex.html#shlex.quote might be of help to quote individual args for POSIX shells if cannot be just passed as a list and shell invocation need to be composed (didn't look what is happening here)
The text was updated successfully, but these errors were encountered:
FWIW, I would recommend in the tests to add some matrix run or just generally create a tmp folder with a space name in and run tests under it. In DataLad we even manufacture the trickiest filename supported on the filesystem to use in some tests: https://github.com/datalad/datalad/blob/maint/datalad/tests/utils_pytest.py#L1451 , e.g. on my system
Summary
Originally reported by a fella co-developer against heudiconv that it crashed when path contained a space in it.
In heudiconv we depend on nipype to just run
dcm2niix
interface: https://github.com/nipy/heudiconv/blob/master/heudiconv/convert.py#L803Actual behavior
observe that
output_dir
has space in/tmp/tr icky
and then running that node kabooms:Expected behavior
to not crash
How to replicate the behavior
get heudiconv env, run tests with TMPDIR pointing to a folder with a space in the filename
https://docs.python.org/3/library/shlex.html#shlex.quote might be of help to quote individual args for POSIX shells if cannot be just passed as a list and shell invocation need to be composed (didn't look what is happening here)
The text was updated successfully, but these errors were encountered: