Evaluating Bass code from stdin #258
Labels
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Hi, this is a very interesting project which I'm just starting to learn.
One useful pattern of interaction with a script interpreter is to be able to provide script input through stdin.
Currently, when I try to provide input to bass through piping to its stdin, it fails with an error about inappropriate ioctl:
Is it an expected current limitation? Is there currently a way for a bass script to evaluate stdin input as bass expressions?
Looking at the reference in the documentation, it seems there is no public API for parsing bass code, or more generally s-expressions.
Perhaps this would be exposed through a
:bass
protocol forread
, and the ability to change the protocol associated with the stdin source(currently fixed tojson
as I understand).Thanks @vito for this nice work, looking forward to making more use of bass!
The text was updated successfully, but these errors were encountered: