Menu

#22 Problem when command substitution with redirection

1.0
closed
nobody
None
2020-07-06
2020-06-14
No

Using Schily Tools 2020-06-09 on Debian 10.4.

$ bosh -c 'var=$({ echo value >&3; } 3>&1)'
bosh: 3: bad file number

Discussion

  • Jörg Schilling

    Jörg Schilling - 2020-06-21

    Could you please check the attached patch?

    I am however not sure whether this is the final solution, as there is no binary node element for { ...;} grouping and other cases could also miss the {} when a back translation from a binary syntax tree into text happens.

    This back translation is used in the recursive parser for $()...

     

    Last edit: Jörg Schilling 2020-06-23
  • Jörg Schilling

    Jörg Schilling - 2020-06-23

    Hi, two days ago it did not work to add the attachment, now it has been added to the previous post.

     
  • Koichi Nakashima

    Oh, I'm sorry. I forgot to check this ticket.

    It seems to work in the simple case above. However, please note that I have not tried it in complicated cases.

     
  • Jörg Schilling

    Jörg Schilling - 2020-07-06
    • status: open --> closed
     
  • Jörg Schilling

    Jörg Schilling - 2020-07-06

    The bug has been fixed in schily-2020-07-01

     

Log in to post a comment.

MongoDB Logo MongoDB