Re: ksh reopening stdin

2014-02-25 Thread LEVAI Daniel
On k, febr 25, 2014 at 14:19:44 +0100, Jérémie Courrèges-Anglas wrote: > LEVAI Daniel writes: > > > Hi! > > Hi Daniel, > [...] > > Try using ''read < /dev/tty'' for your interactive user input. Cheers, Jérémie! I can even use `exec 0

Re: ksh reopening stdin

2014-02-25 Thread Jérémie Courrèges-Anglas
LEVAI Daniel writes: > Hi! Hi Daniel, > I'm doing this: > > > --- script.sh --- > #!/bin/ksh > > for word in $(tr '\n' ' ');do > # ^^ tr(1) reads from standard input > ... some stuff ... > done > > read FOO > > case "${FOO}" in > ... ... ... > esac > --- script.sh