Page 2 of 2

Re: LIB-PB v6.20+: IDE-Tool Build Library for all OS

Posted: Sat Nov 08, 2025 12:23 pm
by Piero
infratec wrote: Wed Nov 05, 2025 8:24 amReadProgramString() waits for CR.
Not true, at least on Mac…

Code: Select all

; Mac
id = RunProgram("echo", ~"-n a\rb\nc", "",  #PB_Program_Open | #PB_Program_Read | #PB_Program_Error)
If id
   While ProgramRunning(id)
      If AvailableProgramOutput(id)
         result.s = ReadProgramString(id)
      EndIf
   Wend
   CloseProgram(id)
EndIf
Debug "'"+result+"'"
Result:

Code: Select all

'a
b c'

Re: LIB-PB v6.20+: IDE-Tool Build Library for all OS

Posted: Sat Nov 08, 2025 12:56 pm
by Axolotl
The incomplete output of the compiler on windows could perhaps have something to do with this, .....
PBCompiler in Console vs. RunProgram
At least that's how it looks to me that the "--quiet " flag is included somehow.