/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1982-2007 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* David Korn <dgk@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#include <stdio.h>
#include <cmd.h>
static const char usage[] =
"[-?\n@(#)$Id: line (AT&T Research) 2010-05-14 $\n]"
"[+NAME?line - read one line]"
"[+DESCRIPTION?The \bline\b utility copies one line (up to and "
"including a newline) from the standard input and writes "
"it on the standard output. It returns an exit status "
"of 1 on EOF and always prints at least a newline. "
"It is often used within shell files to read from the "
"user's terminal.]"
"[+SEE ALSO?\bread\n(1)]"
;
int
{
const char *s;
for (;;)
{
{
case '?':
continue;
case ':':
continue;
}
break;
}
if (!s)
{
if (!s)
s="";
}
}