Skip to content

Commit

Permalink
std: Add a std/bash-out command (like sh-out)
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jan 21, 2025
1 parent 12eb5e0 commit 5278776
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/ys/std.clj
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,10 @@
(str/trim-newline
(:out ret))))

(defn bash-out [& xs]
(let [cmd (str/join " " xs)]
(sh-out "bash -c" cmd)))


;;------------------------------------------------------------------------------
;; External library functions
Expand Down

0 comments on commit 5278776

Please sign in to comment.