ksherlock / mpw-shell

A shell for those that prefer Macintosh Programmer's Workshop.
27 stars 5 forks source link

The embedded command adds an extra space. #5

Closed ushicow closed 6 years ago

ushicow commented 7 years ago
MPW Shell 0.4
# set X "`echo a`"
    echo a
  set X "a "
ksherlock commented 7 years ago

Carriage returns are converted to spaces in embedded commands. In bash, all extra trailing spaces are stripped. I'll verify that's what MPW does and update it.

https://github.com/ksherlock/mpw-shell/blob/9d4340b3ac06047071825e2869e3d289a4bd2211/mpw-shell-expand.rl#L160-L163

ushicow commented 6 years ago

Fixed by commits on Nov 27, 2017 Thanks.