drip icon indicating copy to clipboard operation
drip copied to clipboard

Fails to output when input is redirected

Open tpope opened this issue 12 years ago • 2 comments

First, mke sure the daemon is running:

$ drip -cp clojure.jar clojure.main -e nil

From then on, when stdin is redirected, nothing is output.

$ drip -cp clojure.jar clojure.main -e 1 </dev/null
$ drip -cp clojure.jar clojure.main -e 1
1

tpope avatar Nov 24 '12 18:11 tpope

I experienced the same issue when trying out lein-exec with the following script:

#!/bin/sh lein-exec

(println "bogus")
(doseq
  (map println (java.io.BufferedReader. *in*)))

The following command invocation doesn't print anything on stdout:

$ echo "foobar" | ./test.clj
$

While it works as expected without using drip:

$ unset JAVA_CMD
$ echo "foobar" | ./test.clj
bogus
foobar
$

skuro avatar Feb 21 '13 12:02 skuro

This is still an issue. It (of course) affects logstash too https://groups.google.com/forum/#!topic/logstash-users/ltBCuh2wemU

simmel avatar Oct 06 '14 13:10 simmel