[ https://issues.apache.org/jira/browse/JOSHUA-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lewis John McGibbney reopened JOSHUA-148: ----------------------------------------- > Process Substitution Error in run-giza.pl? > ------------------------------------------ > > Key: JOSHUA-148 > URL: https://issues.apache.org/jira/browse/JOSHUA-148 > Project: Joshua > Issue Type: Bug > Reporter: Tony Fader > > 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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)