summaryrefslogtreecommitdiffstats
path: root/bin/sh/bltin
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-03 14:16:06 +0000
committerpeter <peter@FreeBSD.org>1996-09-03 14:16:06 +0000
commit0475c084c22d974adb50e049f8526e7ba3325c20 (patch)
tree813be7fe988c4549d7c49e07f8aa26f6bed0c68a /bin/sh/bltin
parent46c0540195d8219fc18878aaf2e8f89c0c6778dc (diff)
downloadFreeBSD-src-0475c084c22d974adb50e049f8526e7ba3325c20.zip
FreeBSD-src-0475c084c22d974adb50e049f8526e7ba3325c20.tar.gz
Fix for PR#1287. This makes sh behave sensibly in case statements in the
face of aliases. Note, bash doesn't do aliases while running scripts, but "real" ksh does.. Also: Reduce redundant .Nm macros in (unused) bltin/echo.1 nuke error2, it's hardly used. More -Wall cleanups dont do certain history operations if NO_HISTORY defined handle quad_t's from resource limits Submitted by: Steve Price <sprice@hiwaay.net> (minor tweaks by me)
Diffstat (limited to 'bin/sh/bltin')
-rw-r--r--bin/sh/bltin/echo.112
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/sh/bltin/echo.1 b/bin/sh/bltin/echo.1
index 39a5aa1..c5a1b42 100644
--- a/bin/sh/bltin/echo.1
+++ b/bin/sh/bltin/echo.1
@@ -34,7 +34,7 @@
.\" SUCH DAMAGE.
.\"
.\" @(#)echo.1 8.2 (Berkeley) 5/4/95
-.\" $Id: echo.1,v 1.2 1994/09/24 02:58:27 davidg Exp $
+.\" $Id: echo.1,v 1.3 1996/09/01 10:22:15 peter Exp $
.\"
.Dd May 4, 1995
.Dt ECHO 1
@@ -43,11 +43,11 @@
.Nm echo
.Nd produce message in a shell script
.Sh SYNOPSIS
-.Nm echo
+.Nm
.Op Fl n | Fl e
.Ar args...
.Sh DESCRIPTION
-.Nm Echo
+.Nm
prints its arguments on the standard output, separated by spaces.
Unless the
.Fl n
@@ -55,7 +55,7 @@ option is present, a newline is output following the arguments.
The
.Fl e
option causes
-.Nm echo
+.Nm
to treat the escape sequences specially, as described in the following
paragraph.
The
@@ -77,7 +77,7 @@ A backspace character is output.
.It Li \ec
Subsequent output is suppressed. This is normally used at the end of the
last argument to suppress the trailing newline that
-.Nm echo
+.Nm
would otherwise output.
.It Li \ef
Output a form feed.
@@ -107,6 +107,6 @@ differs from the
C language mechanism.
.Pp
There is no way to force
-.Nm echo
+.Nm
to treat its arguments literally, rather than interpreting them as
options and escape sequences.
OpenPOWER on IntegriCloud