Re: Questions about (open-input-output-pipe

2020-11-11 Thread Timothy Sample
Hi luhux, Neil Jerram writes: > On Tue, 10 Nov 2020 at 08:51, luhux wrote: > >> I want to implement this shell command: >> >> wg pubkey < private > public >> >> [...] >> >> I implemented it using the following code in guile: >> >> [...] >> >> (define (wg-gen-public-key private-key) >> (let ((

Re: Questions about (open-input-output-pipe

2020-11-10 Thread Neil Jerram
I guess it's because "wg pubkey" has not yet seen EOF on its input, i.e. it doesn't know that the input is complete. If that's right, I'm afraid I don't know how to fix it. Presumably you need a call that closes half of the port, but still allows reading the "wg pubkey" output from it. Alternati

Questions about (open-input-output-pipe

2020-11-10 Thread luhux
Hello everyone I am a newbie to guile and I am learning to use guile to write scripts I want to implement this shell command: wg pubkey < private > public This is a command to generate a key, It inputs private key and EOF from stdin, then it outputs the public key and exits. I implemented