0

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.

beluchin
  • 12,047
  • 4
  • 24
  • 35

1 Answers1

1

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

beluchin
  • 12,047
  • 4
  • 24
  • 35