Arc Forumnew | comments | leaders | submitlogin
1 point by akkartik 3833 days ago | link | parent

Ok, try it now:

  anarki $ git pull  # should now have a file called 'arc'
Now an executable file like this (called say x.arc) works:

  #!/PATH/TO/arc
  (prn argv)  ; argv now contains commandline args
Try it out:

  anarki $ ./x.arc a b c
  (./x.arc a b c)
The repo is a little messy now. I had to create a new asv.scm that looks substantially like as.scm, and the 'arc' script is in addition to the older 'arc.sh' which is for interactive use (and which I don't use, preferring to directly 'racket -f as.scm'). Anybody have suggestions for either? Should we rename the old arc.sh to 'iarc'?


1 point by akkartik 3828 days ago | link

I've cleaned up the messiness and duplication. The hoary as.scm is now boot.scm, and it's going to mess up all our 'racket -f as.scm' muscle memory. The top level script is now arc rather than arc.sh. Let me know if you were relying on its ability to run several arc files at the commandline. Or just revert my change :)

https://github.com/arclanguage/anarki/commit/a03a21fb84

-----