Skip to content

Commit

Permalink
undoing previous commit to fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylightsmith committed Nov 23, 2008
1 parent ebafee9 commit e7fa1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/command_line.rb
Expand Up @@ -116,11 +116,11 @@ def full_cmd(cmd, options, &proc)
cmd = escape_and_concatenate(cmd) unless cmd.is_a? String

stdout_prompt_command = options[:stdout] ?
"echo \"#{Platform.prompt} #{cmd}\" >> #{options[:stdout]} && " :
"echo #{Platform.prompt} #{cmd} >> #{options[:stdout]} && " :
''

stderr_prompt_command = options[:stderr] && options[:stderr] != options[:stdout] ?
"echo \"#{Platform.prompt} #{cmd}\" >> #{options[:stderr]} && " :
"echo #{Platform.prompt} #{cmd} >> #{options[:stderr]} && " :
''

redirected_command = block_given? ? "#{cmd} #{stderr_opt}" : "#{cmd} #{stdout_opt} #{stderr_opt}"
Expand Down

0 comments on commit e7fa1ec

Please sign in to comment.