AppliedLogicSystems / ALSProlog

ALS Prolog Compiler & Development Environment
https://alsprolog.com
MIT License
16 stars 9 forks source link

Can't consult named-pipes via process substitution #194

Open chuckhoupt opened 4 years ago

chuckhoupt commented 4 years ago

Some shells, like Bash, have a Process Substition Feature, that allows the output of one command to be passed to another via an ephemeral FIFO file.

Alspro incorrectly throws an error when trying to consult the FIFO file.

Error Example:

$ alspro <(echo ':- write(hello),nl.')
...
Error: File does not exist: /dev/fd/63.
- Error Attribute: '/dev/fd/63'
- Throw pattern: error(existence_error(file,'/dev/fd/63'),['/dev/fd/63'])

Expected output:

$ alspro <(echo ':- write(hello),nl.')
...
hello
...