sindresorhus / grunt-shell

Run shell commands
MIT License
949 stars 126 forks source link

Stdin does not support read #93

Closed LesterTheTester closed 9 years ago

LesterTheTester commented 9 years ago

Create this simple shell script, 'simple.sh':

!/bin/bash

echo "Enter a value:" read value echo $value

Run the script with grunt-shell config: simple: { command: 'simple.sh', options: { stdout: true, stderr: true, stdin: true, failOnError: true } }

Enter a value: typetypetype [ENTER]

Nothing happens. Value should be read from stdin and script should proceed after [ENTER] is pressed. Works when script is directly invoked.

LesterTheTester commented 9 years ago

wow...we were using a very old version and not aware (0.2.2) Fixed.