Uploaded image for project: 'Joshua (Retired)'
  1. Joshua (Retired)
  2. JOSHUA-148

Process Substitution Error in run-giza.pl?

Add voteWatch issue
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • None
    • 6.2
    • None
    • None

    Description

      This line creates a command to run and stores the value in $__ALIGNMENT_CMD:
      https://github.com/joshua-decoder/joshua/blob/master/scripts/training/run-giza.pl#L232

      Then the variable is passed as a command line option in this line:
      https://github.com/joshua-decoder/joshua/blob/master/scripts/training/run-giza.pl#L265

      This breaks on my system (x86_64 linux running bash as a shell). I modified the code to (I think) work on bash.

      Here's the changes I made. They probably won't work in other shells that don't have bash's <(blah) subprocess substitution. Also I found that I had to replace the stdout redirection of the command (> output) to a command line option (-o=output) for some reason. I'm not sure what was going on there, either.

      Changes here: https://github.com/afader/joshua/commit/a7540443f59856f363b7101ab4db23c4818504e3

      Attachments

        Activity

          People

            Unassigned Unassigned
            afader Tony Fader

            Dates

              Created:
              Updated:

              Slack

                Issue deployment