Closed roryokane closed 9 years ago
Should be pretty easy to add. I'll hopefully have a few minutes tonight to get that in.
As a side note, export x=3
is a bash command, not a bish statement. So for your experiment you'd want to do something like echo "x=3;" | bish
.
This is now implemented. If you specify '-' as the input file, it will read from stdin. You can now do things like this:
echo 'println("hello");' | bish - | bash
Currently, the only way to compile a script is passing an existing file as an argument:
I think bish should be able to read a script from standard input, too:
Why does this feature need to be added? Well, it would make bish adhere more closely to UNIX principles, making it easier to use in various scripts. But the specific reason I care is that it makes experimentation easier. After I compiled
bish
, the first thing I tried was this:I wanted to see what kind of boilerplate
bish
adds to its output. I was disappointed that the command failed. I see no downside to changingbish
so that it works.