Skip to content
Permalink
Browse files

v0.0.17

  • Loading branch information...
borkdude committed Sep 7, 2019
1 parent 5ca1061 commit 876c2fe7a031768c911e4cf3fdb1d80bae070797
Showing with 18 additions and 2 deletions.
  1. +17 −1 README.md
  2. +1 −1 resources/BABASHKA_VERSION
@@ -229,7 +229,7 @@ bb '(load-file "script.clj")'
Using `bb` with a shebang also works:
``` clojure
#!/usr/bin/env bb -f
#!/usr/bin/env bb
(defn get-url [url]
(println "Fetching url:" url)
@@ -260,6 +260,22 @@ Fetching url: https://www.clojure.org
Writing file: /tmp/clojure.org.html
```
If `/usr/bin/env` doesn't work for you, you can use the following workaround:
``` shellsession
$ cat script.clj
#!/bin/sh
#_(
"exec" "bb" "$0" hello "$@"
)
(prn *command-line-args*)
./script.clj 1 2 3
("hello" "1" "2" "3")
```
## Preloads
The environment variable `BABASHKA_PRELOADS` allows to define code that will be
@@ -1 +1 @@
0.0.17-SNAPSHOT
0.0.17

0 comments on commit 876c2fe

Please sign in to comment.
You can’t perform that action at this time.