ALSProlog icon indicating copy to clipboard operation
ALSProlog copied to clipboard

Can't consult named-pipes via process substitution

Open chuckhoupt opened this issue 5 years ago • 0 comments

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
...

chuckhoupt avatar May 21 '20 19:05 chuckhoupt