Skip to content

Commit

Permalink
v0.0.17
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Sep 7, 2019
1 parent 5ca1061 commit 876c2fe
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion README.md
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion resources/BABASHKA_VERSION
@@ -1 +1 @@
0.0.17-SNAPSHOT
0.0.17

0 comments on commit 876c2fe

Please sign in to comment.