BIC-MNI / minc-tools

Basic minc-tools from former minc repository
Other
30 stars 25 forks source link

minclookup loses quotes around lut_string when saving history #45

Closed gdevenyi closed 8 years ago

gdevenyi commented 8 years ago

Original command was:

> minclookup -lut_string "201 201" -discrete brain1_jg_label.mnc brain1_jg_201.mnc -clobber

But history shows:

> minclookup -lut_string 201 201 -discrete \
     brain1_jg_label.mnc brain1_jg_201.mnc -clobber

With the quotes missing the command is "broken"

gdevenyi commented 8 years ago

This may be a shell issue, that minclookup never sees the quotes, but it should insert some in the history perhaps?

rdvincent commented 8 years ago

This is partially a shell issue - but at a minimum we should probably restore quotes around strings that contain spaces.

rdvincent commented 8 years ago

@gdevenyi I checked in a fix for this, which I think is sufficient for most cases.

gdevenyi commented 8 years ago

Fixed