Menu

#17 Parser confusion(?) with command substitution

1.0
closed
nobody
None
2020-04-28
2020-04-16
No

Using Schily Tools 2020-03-27 on Debian 10.3.

echo $( printf a; printf b ) # => ab
: $(
cat << HERE
HERE
)
echo $( printf a; printf b ) # => aprintf

Discussion

  • Jörg Schilling

    Jörg Schilling - 2020-04-17

    This is a really strange behavior that would need a longer investigation.

    It seems to be related to $(cmd) handling as it does not appen with cmd using backticks

     

    Last edit: Jörg Schilling 2020-04-17
  • Jörg Schilling

    Jörg Schilling - 2020-04-23

    It was not parser confusion, but missbehaved output optimization, please check the patch

     
  • Koichi Nakashima

    It seems to work. Thank you!

     
  • Jörg Schilling

    Jörg Schilling - 2020-04-28
    • status: open --> closed
     
  • Jörg Schilling

    Jörg Schilling - 2020-04-28

    Closed as it is fixed in the next release

     

Log in to post a comment.

MongoDB Logo MongoDB