Closed dundalek closed 1 year ago
Given here-document:
cat - <<END hello world END
Errors with Redir Op not implemented
Redir Op not implemented
It could be translated like:
(shell {:in "hello\nworld\n"} "cat" "-")
Given here-document:
Errors with
Redir Op not implemented
Stacktrace
``` {"Type" "CallExpr", "Args" [{"Parts" [{"Type" "Lit", "Value" "cat"}]} {"Parts" [{"Type" "Lit", "Value" "-"}]}]} ----- Error -------------------------------------------------------------------- Type: java.lang.Exception Message: Redir Op not implemented: Location: /home/me/.gitlibs/libs/io.github.pesterhazy/bash2bb/57c4f925273e2146b7ba8c392e3268775cef0616/src/bash2bb/core.clj:149:34 ----- Context ------------------------------------------------------------------ 145: (assoc opts :in (-> redir (get "Word") (get "Parts") only (get "Value"))) 146: ;; else 147: (do 148: (pp cmd) 149: (throw (Exception. (str "Redir Op not implemented: " (get redir "op"))))))) ^--- Redir Op not implemented: 150: {} 151: redirs)] 152: (apply list 153: 'shell 154: (into (if (empty? opts) [] [opts]) ----- Stack trace -------------------------------------------------------------- bash2bb.core - /home/me/.gitlibs/libs/io.github.pesterhazy/bash2bb/57c4f925273e2146b7ba8c392e3268775cef0616/src/bash2bb/core.clj:149:34 clojure.core/reduce -It could be translated like: