Closed LesterTheTester closed 9 years ago
Create this simple shell script, 'simple.sh':
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.
wow...we were using a very old version and not aware (0.2.2) Fixed.
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.