mobile-it
Advanced Member level 1
Cygwin Scripting
Hi all,
I have a problem reading in some user input to my scripts in cygwin (I am learning it...)
when I do:
$Read inputUser
Test
$echo $inputUser
he returns me the word Test
But:
When I build a script
#!/bin/sh
# Shows how to read a line from stdin
`read userinput`
echo $userinput
and run it it doesn't work... I am starting to learn making scripts... thanks for your help
Hi all,
I have a problem reading in some user input to my scripts in cygwin (I am learning it...)
when I do:
$Read inputUser
Test
$echo $inputUser
he returns me the word Test
But:
When I build a script
#!/bin/sh
# Shows how to read a line from stdin
`read userinput`
echo $userinput
and run it it doesn't work... I am starting to learn making scripts... thanks for your help