Skip to content

Commit 5278776

Browse files
committed
std: Add a std/bash-out command (like sh-out)
1 parent 12eb5e0 commit 5278776

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/ys/std.clj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,10 @@
859859
(str/trim-newline
860860
(:out ret))))
861861

862+
(defn bash-out [& xs]
863+
(let [cmd (str/join " " xs)]
864+
(sh-out "bash -c" cmd)))
865+
862866

863867
;;------------------------------------------------------------------------------
864868
;; External library functions

0 commit comments

Comments
 (0)