Skip to content

Commit

Permalink
Fix precedence problem in Shell out when checking env for emptiness; …
Browse files Browse the repository at this point in the history
…it binds less tight than {}, but more tight than a variable...
  • Loading branch information
flaviusb committed Jul 31, 2011
1 parent edf09da commit fa1c629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell.ik
Expand Up @@ -3,7 +3,7 @@ Shell = Origin mimic with(
out: method("Shell out to a subprocess with working directory pwd:, write stdin: to the standard input of the subprocess, and use printer: to alter the display printer.",
printer: fn(x, "From subshell: #{x}" println), +cmds, pwd: baseDir, stdin: nil, env: {},
pb = java:lang:ProcessBuilder new(java:lang:String[] from(cmds))
if(not env empty?,
if(not (env empty?),
proc_env = pb environment
env each(env_var, proc_env put(env_var key, env_var value)))
pb directory(java:io:File new(pwd))
Expand Down

0 comments on commit fa1c629

Please sign in to comment.