These are chat archives for evhub/coconut

25th
Sep 2016
Archibaldo Haddock
@capitanhaddock
Sep 25 2016 21:13
How can I use coconut as the shell interpreter with a #! instead of python? I've tried #!/usr/bin/env coconut -c and various other coconut options without success.
Chuck Daniels
@chuckwondo
Sep 25 2016 22:07

@capitanhaddock The -c option is for running a single line of code from the command line, like so:

coconut -c "'hello' |> print

At the top of a coconut file, you want something like the following:

#!/usr/bin/env coconut -nr