multidefine chomps a non-delimiter character(s)

From: Muhammad Mahendra Subrata <mumahendras3_at_gmail.com>
Date: Thu, 13 Feb 2020 02:09:24 +0700

Greetings all,

I'm using execline version 2.5.3.0 (https://link.getmailspring.com/link/776373CF-3469-496C-87E0-2A5AFAFB803D_at_getmailspring.com/0?redirect=2.5.3.0&recipient=c2thd2FyZUBsaXN0LnNrYXJuZXQub3Jn) and skalibs 2.9.1.0 (https://link.getmailspring.com/link/776373CF-3469-496C-87E0-2A5AFAFB803D_at_getmailspring.com/1?redirect=2.9.1.0&recipient=c2thd2FyZUBsaXN0LnNrYXJuZXQub3Jn). I tried to run the script below:
#!/bin/execlineb -P
multidefine -nd" \t" "foo bar1 bar2" { a b c }
echo $a $b $c

Based on my understanding, it should output "foo bar1 bar2". But instead of that, the output is just "foo bar1 " (notice the space after bar1) so it seems that bar2 is being chomped, leaving $c with an empty word. Is this the intended behaviour?
Thanks!
Received on Wed Feb 12 2020 - 19:09:24 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC