diff options
Diffstat (limited to 'usr/src/man/man1/read.1')
-rw-r--r-- | usr/src/man/man1/read.1 | 60 |
1 files changed, 13 insertions, 47 deletions
diff --git a/usr/src/man/man1/read.1 b/usr/src/man/man1/read.1 index 1e443939f0..ec5a1a8797 100644 --- a/usr/src/man/man1/read.1 +++ b/usr/src/man/man1/read.1 @@ -3,14 +3,14 @@ .\" Copyright 1989 AT&T .\" Portions Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved .\" Portions Copyright (c) 1982-2007 AT&T Knowledge Ventures -.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at +.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at .\" http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] -.TH read 1 "18 Dec 2007" "SunOS 5.11" "User Commands" +.TH READ 1 "Dec 18, 2007" .SH NAME read \- read a line from standard input .SH SYNOPSIS @@ -173,12 +173,10 @@ displays a prompt on standard error when standard input is a terminal or pipe. The following option is supported by \fB/usr/bin/read\fR and \fBksh\fR: .sp .ne 2 -.mk .na \fB\fB-r\fR\fR .ad .RS 6n -.rt Do not treat a backslash character in any special way. Considers each backslash to be part of the input line. .RE @@ -189,114 +187,94 @@ to be part of the input line. The following options are supported by \fBksh93\fR: .sp .ne 2 -.mk .na \fB\fB-A\fR\fR .ad .RS 14n -.rt Unset \fIvar\fR, and create an indexed array containing each field in the line starting at index \fB0\fR. .RE .sp .ne 2 -.mk .na \fB\fB-d\fR \fIdelim\fR\fR .ad .RS 14n -.rt Read until delimiter \fIdelim\fR instead of to the end of line. .RE .sp .ne 2 -.mk .na \fB\fB-n\fR \fInsize\fR\fR .ad .RS 14n -.rt Read at most \fInsize\fR bytes. Binary field size is in bytes. .RE .sp .ne 2 -.mk .na \fB\fB-N\fR \fInsize\fR\fR .ad .RS 14n -.rt Read exactly \fInsize\fR bytes. Binary field size is in bytes. .RE .sp .ne 2 -.mk .na \fB\fB-p\fR\fR .ad .RS 14n -.rt Read from the current co-process instead of standard input. An end of file causes \fBread\fR to disconnect the co-process so that another can be created. .RE .sp .ne 2 -.mk .na \fB\fB-r\fR\fR .ad .RS 14n -.rt Do not treat \fB\e\fR specially when processing the input line. .RE .sp .ne 2 -.mk .na \fB\fB-s\fR\fR .ad .RS 14n -.rt Save a copy of the input as an entry in the shell history file. .RE .sp .ne 2 -.mk .na \fB\fB-t\fR \fItimeout\fR\fR .ad .RS 14n -.rt Specify a \fItimeout\fR in seconds when reading from a terminal or pipe. .RE .sp .ne 2 -.mk .na \fB\fB-u\fR \fIfd\fR\fR .ad .RS 14n -.rt Read from file descriptor number \fIfd\fR instead of standard input. The default value is \fB0\fR. .RE .sp .ne 2 -.mk .na \fB\fB-v\fR\fR .ad .RS 14n -.rt When reading from a terminal, display the value of the first variable and use it as a default value. .RE @@ -307,12 +285,10 @@ it as a default value. The following operand is supported: .sp .ne 2 -.mk .na \fB\fIvar\fR\fR .ad .RS 7n -.rt The name of an existing or non-existing shell variable. .RE @@ -343,23 +319,19 @@ that affect the execution of \fBread\fR: \fBLANG\fR, \fBLC_ALL\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR. .sp .ne 2 -.mk .na \fB\fBIFS\fR\fR .ad .RS 7n -.rt Determines the internal field separators used to delimit fields. .RE .sp .ne 2 -.mk .na \fB\fBPS2\fR\fR .ad .RS 7n -.rt Provides the prompt string that an interactive shell writes to standard error when a line ending with a backslash is read and the \fB-r\fR option was not specified, or if a here-document is not terminated after a NEWLINE character is @@ -372,23 +344,19 @@ entered. The following exit values are returned: .sp .ne 2 -.mk .na \fB\fB0\fR\fR .ad .RS 6n -.rt Successful completion. .RE .sp .ne 2 -.mk .na \fB\fB>0\fR\fR .ad .RS 6n -.rt End-of-file was detected or an error occurred. .RE @@ -401,15 +369,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes: .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityCommitted +Interface Stability Committed _ -StandardSee \fBstandards\fR(5). +Standard See \fBstandards\fR(5). .TE .SS "ksh93" @@ -417,13 +384,12 @@ StandardSee \fBstandards\fR(5). .sp .TS -tab() box; -cw(2.75i) |cw(2.75i) -lw(2.75i) |lw(2.75i) -. -ATTRIBUTE TYPEATTRIBUTE VALUE +box; +c | c +l | l . +ATTRIBUTE TYPE ATTRIBUTE VALUE _ -Interface StabilityUncommitted +Interface Stability Uncommitted .TE .SH SEE ALSO |