dilshadmustafa / picat_genutils

General utilities for Picat programming language
Other
1 stars 1 forks source link

Multiple lines as result instead of the first line #2

Open hakank opened 2 years ago

hakank commented 2 years ago

Would it be possible to change so the result string is the complete results of a command?

For example, the following (ls *.c) currently only gets the first line, instead of all the files:

Picat> bp.shell(X,"ls *.c")      
X = 'arith.c\n'
yes

It would be OK that it's a (large) single string since one can split on newline.