It is currently Mon, 08 Aug 2022 19:12:33 GMT

Author Message
 Q about Bourne shell "read" command

I've been tinkering around writing a "read" command for my Macintosh
shell.  I've based the command upon the definition in "UNIX Power Tools",
section 46.13.

That book gives the synopsis as:

read varname

And says "If you name more than one variable, the first word typed goes
into the first variable, the second word goes into the second variable,
and so on... all leftover variables go into the last variable"

I've done that, but I wonder what other options there might be.  Could
someone email me a man page for the Bourne "read"?

I'm tempted to make it:

read var [var...] -p prompt

but I don't know how non-standard that would be.


John (

 Sat, 01 Mar 1997 23:34:04 GMT   
 Q about Bourne shell "read" command

I'm running an ancient version of Xenix, but on my system, "read" is a
builtin part of the shell, and thus doesn't have its own man page.  The
man page for sh covers it.

Bill Marcum
"Say, do any of you guys know how to Madison?"

 Sun, 02 Mar 1997 05:05:50 GMT   
 Q about Bourne shell "read" command
I found the definition in the POSIX shell spec.  The only option is -r,
which means to treat \ literally and not as an escape character.

John (

 Sun, 02 Mar 1997 19:49:16 GMT   
   [ 3 post ] 

Similar Threads

1. Bourne shell "read line"

2. "read" shell command

3. Bourne shell: "no stack space" problem

4. Bourne shell "trip test"?

5. Bourne shell equivilant of "source"

6. Bourne Shell Script to "C" Converter

7. "unset" variables under ultrix bourne shell

8. Read command in bourne shell vs. K shell

9. shell commands in "make"

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software