Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-shells/dash/files: dash-0.5.8.1-dumb-echo.patch
Date: Tue, 28 Jul 2015 16:15:15
Message-Id: 20150728161509.B116ABF@oystercatcher.gentoo.org
1 vapier 15/07/28 16:15:09
2
3 Modified: dash-0.5.8.1-dumb-echo.patch
4 Log:
5 Update echo docs in man page to match change in behavior.
6
7 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
8
9 Revision Changes Path
10 1.2 app-shells/dash/files/dash-0.5.8.1-dumb-echo.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/dash/files/dash-0.5.8.1-dumb-echo.patch?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/dash/files/dash-0.5.8.1-dumb-echo.patch?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-shells/dash/files/dash-0.5.8.1-dumb-echo.patch?r1=1.1&r2=1.2
15
16 Index: dash-0.5.8.1-dumb-echo.patch
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-shells/dash/files/dash-0.5.8.1-dumb-echo.patch,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- dash-0.5.8.1-dumb-echo.patch 1 Nov 2014 19:18:17 -0000 1.1
23 +++ dash-0.5.8.1-dumb-echo.patch 28 Jul 2015 16:15:09 -0000 1.2
24 @@ -52,3 +52,54 @@
25 + outc('\n', out1);
26 return 0;
27 }
28 +--- a/src/dash.1
29 ++++ b/src/dash.1
30 +@@ -1180,43 +1180,15 @@
31 + option turns off the effect of any preceding
32 + .Fl P
33 + options.
34 +-.It Xo echo Op Fl n
35 ++.It Xo echo
36 + .Ar args...
37 + .Xc
38 + Print the arguments on the standard output, separated by spaces.
39 +-Unless the
40 +-.Fl n
41 +-option is present, a newline is output following the arguments.
42 +-.Pp
43 +-If any of the following sequences of characters is encountered during
44 +-output, the sequence is not output. Instead, the specified action is
45 +-performed:
46 +-.Bl -tag -width indent
47 +-.It Li \eb
48 +-A backspace character is output.
49 +-.It Li \ec
50 +-Subsequent output is suppressed. This is normally used at the end of the
51 +-last argument to suppress the trailing newline that
52 +-.Ic echo
53 +-would otherwise output.
54 +-.It Li \ef
55 +-Output a form feed.
56 +-.It Li \en
57 +-Output a newline character.
58 +-.It Li \er
59 +-Output a carriage return.
60 +-.It Li \et
61 +-Output a (horizontal) tab character.
62 +-.It Li \ev
63 +-Output a vertical tab.
64 +-.It Li \e0 Ns Ar digits
65 +-Output the character whose value is given by zero to three octal digits.
66 +-If there are zero digits, a nul character is output.
67 +-.It Li \e\e
68 +-Output a backslash.
69 +-.El
70 + .Pp
71 +-All other backslash sequences elicit undefined behaviour.
72 ++No arguments or backslash sequences are supported as they are not portable.
73 ++They will be printed out exactly as passed in.
74 ++.Pp
75 ++You can replace `echo -n ...` with the portable `printf %s ...` construct.
76 + .It eval Ar string ...
77 + Concatenate all the arguments with spaces.
78 + Then re-parse and execute the command.