Re: Q about shell script

2001-12-20 Thread Cameron Simpson
On Wed, Dec 19, 2001 at 02:30:30PM +0800, xiong zhao <[EMAIL PROTECTED]> wrote: | Hello. I saw this in a shell script but don't know what it mean: | ... | read _ANSWER | :${_ANSWER:=$DEFAULT} | ... | What's the meaning of read and how to use it? And the same question | about the use of ":" and ":=

Q about shell script

2001-12-20 Thread xiong zhao
Hello. I saw this in a shell script but don't know what it mean: ... read _ANSWER :${_ANSWER:=$DEFAULT} ... What's the meaning of read and how to use it? And the same question about the use of ":" and ":="? What's the difference between ":=" and simply "="? Can someone explain? Thanks in advance.