Re: [Chicken-users] csc and standard input

2014-07-12 Thread Michele La Monaca
On Sat, Jul 12, 2014 at 2:20 PM, Evan Hanson wrote: > Hi Michele, > > csc(1) will read source from standard input given the filename "-". > > $ csc -o quick_test - > (print 1) > ^D > $ ./quick_test > 1 Oh, very well. Sorry for not reading the documentation beforehand. > Wheth

Re: [Chicken-users] csc and standard input

2014-07-12 Thread Evan Hanson
Hi Michele, csc(1) will read source from standard input given the filename "-". $ csc -o quick_test - (print 1) ^D $ ./quick_test 1 Whether csc(1) should default to standard input when no filename is given is a matter for debate, but that's how it's done as things are. Regar

[Chicken-users] csc and standard input

2014-07-12 Thread Michele La Monaca
Hi all, I think it would be useful if csc were able to work directly from the standard input (e.g. in case of no source files). For example: csc -o quick_test [paste code] Ctrl-D ./quick_test or cat f.scm | preprocessor | csc ./a.out On most Unixes you can obtain the result with /dev/stdin, bu