Well, it would appear that the "ayes" have it (though by a slim margin).
Apply my \c changes to echo. It should also be noted that this is: A) going into 2.2, not 2.1 B) a functional no-op unless you actually use it!
This commit is contained in:
parent
f0be1274ca
commit
6cef43a78b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=10498
@ -33,7 +33,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
|
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
|
||||||
.\" $Id$
|
.\" $Id: echo.1,v 1.2 1994/09/24 02:55:17 davidg Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd July 22, 1993
|
.Dd July 22, 1993
|
||||||
.Dt ECHO 1
|
.Dt ECHO 1
|
||||||
@ -55,7 +55,9 @@ output.
|
|||||||
The following option is available:
|
The following option is available:
|
||||||
.Bl -tag -width flag
|
.Bl -tag -width flag
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Do not print the trailing newline character.
|
Do not print the trailing newline character. This may also be
|
||||||
|
achieved by appending `\ec' to the end of the string, as is done
|
||||||
|
by iBCS2 compatible systems.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id$
|
* $Id: echo.c,v 1.2 1994/09/24 02:55:18 davidg Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
@ -62,8 +62,14 @@ main(argc, argv)
|
|||||||
else
|
else
|
||||||
nflag = 0;
|
nflag = 0;
|
||||||
|
|
||||||
while (*argv) {
|
while (argv[0]) {
|
||||||
(void)printf("%s", *argv);
|
int len = strlen(argv[0]);
|
||||||
|
|
||||||
|
if (len >= 2 && !argv[1] && argv[0][len - 2] == '\\' && argv[0][len - 1] == 'c') {
|
||||||
|
argv[0][len - 2] = '\0';
|
||||||
|
nflag = 1;
|
||||||
|
}
|
||||||
|
(void)printf("%s", argv[0]);
|
||||||
if (*++argv)
|
if (*++argv)
|
||||||
putchar(' ');
|
putchar(' ');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user