dspinellis / dgsh

Shell supporting pipelines to and from multiple processes
http://www.spinellis.gr/sw/dgsh/
Other
323 stars 23 forks source link

Refactor dgsh-wrap argument handling #53

Closed dspinellis closed 7 years ago

dspinellis commented 7 years ago

Now its option flag handling appears to be trying to support OSs that do not perform argument splitting. However, the handling of the rest of the arguments does not appear to do that. A better way would be to test whether argv[1] starts with a - and contains a space. In such a case, split it into words and assign them to a new argv. Then proceed with normal getopt processing.

Do this after #34 to prevent unwanted regressions.

mfragkoulis commented 7 years ago

Commit https://github.com/dspinellis/dgsh/commit/28f848f9787ffca5fa43cb79db1dd6577bc2310c addresses this.