babashka does not run script - new to babashka

85 Views Asked by At

I am new to babashka. When I run a script it appears to do nothing. On cygwin:

$ bb --version
babashka v1.1.172

$ bb '(+ 1 2 3)'
6

$ echo '(+ 1 2 3)' > t.clj

$ cat t.clj
(+ 1 2 3)

$ bb t.clj
        <== nothing here!

The same thing is happening on the Windows command prompt.

1

There are 1 best solutions below

1
On

never mind - the --prn option worked:

$ bb --prn t.clj
6

However, the related section on the babashka book has the script just like I have it on my question and does not mention the need to use the --prn option