bash - Passing unescaped equals sign to GNU parallel in args -
i invoked gnu parallel (on os x yosemite, installed using macports, shell bash 3.2.57) this:
parallel mycommand -o a=5 -o ::: y=1 y=2 with intent run following commands, in parallel:
mycommand -o a=5 -o y=1 mycommand -o a=5 -o y=2 but runs this:
mycommand -o a=5 -o y\=1 mycommand -o a=5 -o y\=2 the backslash causes mycommand not recognize argument. problem. , after scanning man page , reading section of tutorial on quoting, can't figure out way parallel run commands without backslash getting in there. i've tried putting y= options in file, i've tried single , double quotes various levels of nesting, output of parallel --dry-run shows y\=. there way can backslash out?
this should trick:
parallel eval mycommand -o a=5 -o ::: y=1 y=2
Comments
Post a Comment