Clojure

Enhance clojure.java.shell/sh to accept more input types

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Backlog
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code
  • Approval:
    Ok

Description

Currently clojure.java.shell/sh will only accept bytes or Strings as inputs to the subprocess's stdin.

Attached patch replaces code specific to byte[] and String with a call to clojure.java.io/copy, thus additionally accepting InputStreams, Readers, and Files as input.

  1. 0765-shell-2.patch
    05/Apr/11 8:39 PM
    4 kB
    Stuart Halloway
  2. shell.patch
    25/Mar/11 8:41 PM
    3 kB
    Alexander Taggart

Activity

Hide
Stuart Halloway added a comment -

second patch subsumes first, removes spurious imports.

Show
Stuart Halloway added a comment - second patch subsumes first, removes spurious imports.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: