Re: non-blocking stdin from bash
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sun, Aug 12, 2018 at 12:34:08PM -0400, Jim Popovitch wrote:
[...]
> Turns out I had mis-read your first reply as "-t 1", chiefly because
Ah, I see.
> that was all that I had found before posting here. What now works for
> me avoids the -t param:
>
>
> while read stdin_line
> do
> MSG=$MSG"\n"$stdin_line
> done < /dev/stdin
This will block in the read as long as the line isn't yet terminated.
But of course fine, if it rocks your boat :-)
> Thanks again,
Hey. You're welcome
Cheers
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAltwcrYACgkQBcgs9XrR2kYqgwCdH9J+3t6DYuGAcS/23OaZNE1i
seYAn0i65VKWm16CNrmChrmpci01kchP
=ckC2
-----END PGP SIGNATURE-----
Reply to: