Skip to content

Commit 4166a76

Browse files
committed
format(docs): remove escaped t's
1 parent a0a8253 commit 4166a76

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+283
-283
lines changed

docs/bash4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ See [read](commands/builtin/read.md)
9090

9191
### Changes to the "help" builtin
9292

93-
The builtin itself didn\'t change much, but the data displayed is more
93+
The builtin itself didn't change much, but the data displayed is more
9494
structured now. The help texts are in a better format, much easier to
9595
read.
9696

docs/commands/builtin/caller.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ f3
6060
## Notes
6161

6262
- `caller` produces no output unless used within a script that's run
63-
from a real file. It isn\'t particularly useful for interactive use,
63+
from a real file. It isn't particularly useful for interactive use,
6464
but can be used to create a decent `die` function to track down
6565
errors in moderately complex scripts.
6666
`{ bash /dev/stdin; } <<<$'f(){ g; }\ng(){ h; }\nh(){ while caller $((n++)); do :; done; }\nf'`

docs/commands/builtin/declare.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ variable.
2222
When used in a function, `declare` makes `NAMEs` local variables, unless
2323
used with the `-g` option.
2424

25-
Don\'t use it's synonym `typeset` when coding for Bash, since it's
25+
Don't use it's synonym `typeset` when coding for Bash, since it's
2626
tagged as obsolete.
2727

2828
### Options
@@ -167,7 +167,7 @@ for details. ksh93 namerefs are much more powerful than Bash's.
167167
possible exception of Zsh in Bash compatibility mode. Bash marks the
168168
synonym `typeset` as obsolete, which in Bash behaves identically to
169169
`declare`. All other Korn-like shells use `typeset`, so it probably
170-
isn\'t going away any time soon. Unfortunately, being a non-standard
170+
isn't going away any time soon. Unfortunately, being a non-standard
171171
builtin, `typeset` differs significantly between shells. ksh93 also
172172
considers `typeset` a special builtin, while Bash does not - even in
173173
POSIX mode. If you use `typeset`, you should attempt to only use it

docs/commands/builtin/echo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
newline. The return status is always `0`. If the
1111
[shopt](../../commands/builtin/shopt.md) option `xpg_echo` is set, Bash
1212
dynamically determines whether echo should expand escape characters
13-
(listed below) by default based on the current platform. `echo` doesn\'t
13+
(listed below) by default based on the current platform. `echo` doesn't
1414
interpret `--` as the end of options, and will simply print this string
1515
if given.
1616

docs/commands/builtin/eval.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ the `eval` command below it.
3333

3434
Frequently, `eval` is used to cause side-effects by performing a pass of
3535
expansion on the code before executing the resulting string. This allows
36-
for things that otherwise wouldn\'t be possible with ordinary Bash
36+
for things that otherwise wouldn't be possible with ordinary Bash
3737
syntax. This also, of course, makes `eval` the most powerful command in
3838
all of shell programming (and in most other languages for that matter).
3939

@@ -106,7 +106,7 @@ controlled carefully by the caller is a good way to use it.
106106
of eval will leak out into the surrounding environment. It is
107107
possible to work around this limitation by prefixing special
108108
builtins with the `command` regular builtin, but current versions of
109-
~~ksh93~~ and zsh don\'t do this properly
109+
~~ksh93~~ and zsh don't do this properly
110110
([fixed](http://article.gmane.org/gmane.comp.programming.tools.ast.devel/686)
111111
in ksh 93v- 2012-10-24 alpha). Earlier versions of zsh work (with
112112
`setopt POSIX_BUILTINS` \-- looks like a regression). This works
@@ -129,12 +129,12 @@ controlled carefully by the caller is a good way to use it.
129129
$ ( x=a; eval "$x"'=( a b\ c d )'; printf '<%s> ' "${a[@]}"; echo ) # Proper quoting then gives us the expected results.
130130
<a> <b c> <d>
131131

132-
We don\'t know why Bash does this. Since parentheses are metacharacters,
132+
We don't know why Bash does this. Since parentheses are metacharacters,
133133
they must ordinary be quoted or escaped when used as arguments. The
134134
first example above is the same error as the second in all non-Bash
135135
shells, even those with compound assignment.
136136

137-
In the case of `eval` it isn\'t recommended to use this behavior,
137+
In the case of `eval` it isn't recommended to use this behavior,
138138
because unlike e.g. [declare](../../commands/builtin/declare.md), the initial
139139
expansion is still subject to all expansions including
140140
[word-splitting](../../syntax/expansion/wordsplit.md) and [pathname

docs/commands/builtin/exit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ There are no options.
2222

2323
### Exit status
2424

25-
Naturally, you can\'t ask for the exit status from within the shell that
25+
Naturally, you can't ask for the exit status from within the shell that
2626
executed the `exit` command, because the shell exits.
2727

2828
Status Reason

docs/commands/builtin/let.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ difference being `let` is a builtin (simple command), and `((` is a
2424
compound command. The arguments to `let` are therefore subject to all
2525
the same expansions and substitutions as any other simple command -
2626
requiring proper quoting and escaping - whereas the contents of `((`
27-
aren\'t subject to [word-splitting](../../syntax/expansion/wordsplit.md) or
27+
aren't subject to [word-splitting](../../syntax/expansion/wordsplit.md) or
2828
[pathname expansion](../../syntax/expansion/globs.md) (almost never desirable
2929
for arithmetic). For this reason, **the [arithmetic compound
3030
command](../../syntax/ccmd/arithmetic_eval.md) should generally be preferred
@@ -80,7 +80,7 @@ needed.
8080
- It seems to be a common misunderstanding that `let` has some legacy
8181
purpose. Both `let` and [[^1]](../../syntax/ccmd/arithmetic_eval.md) were
8282
ksh88 features and almost identical in terms of portability as
83-
everything that inherited one also tended to get the other. Don\'t
83+
everything that inherited one also tended to get the other. Don't
8484
choose `let` over `((` expecting it to work in more places.
8585
- [expr(1)](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/expr.html#tag_20_42)
8686
is a command one is likely to come across sooner or later. While it

docs/commands/builtin/local.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ way, and takes all the same options, with 3 exceptions:
2626

2727
## Portability considerations
2828

29-
- `local` is not specified by POSIX. Most bourne-like shells don\'t
29+
- `local` is not specified by POSIX. Most bourne-like shells don't
3030
have a builtin called `local`, but some such as `dash` and the
3131
busybox shell do.
3232

@@ -41,15 +41,15 @@ way, and takes all the same options, with 3 exceptions:
4141
```{=html}
4242
<!-- -->
4343
```
44-
- In ksh93, using POSIX-style function definitions, `typeset` doesn\'t
44+
- In ksh93, using POSIX-style function definitions, `typeset` doesn't
4545
set `local` variables, but rather acts upon variables of the
4646
next-outermost scope (e.g. setting attributes). Using `typeset`
4747
within functions defined using ksh `function name {` syntax,
4848
variables follow roughly
4949
[lexical-scoping](http://community.schemewiki.org/?lexical-scope),
50-
except that functions themselves don\'t have scope, just like Bash.
50+
except that functions themselves don't have scope, just like Bash.
5151
This means that even functions defined within a \"function's
52-
scope\" don\'t have access to non-local variables except through
52+
scope\" don't have access to non-local variables except through
5353
`namerefs`.
5454

5555
## See also

docs/commands/builtin/mapfile.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ given array `ARRAY` is set readonly.
2929
`-t` Remove any trailing newline from a line read, before it is assigned to an array element.
3030
`-u FD` Read from filedescriptor `FD` rather than standard input.
3131

32-
While `mapfile` isn\'t a common or portable shell feature, it's
32+
While `mapfile` isn't a common or portable shell feature, it's
3333
functionality will be familiar to many programmers. Almost all
3434
programming languages (aside from shells) with support for compound
3535
datatypes like arrays, and which handle open file objects in the
3636
traditional way, have some analogous shortcut for easily reading all
3737
lines of some input as a standard feature. In Bash, `mapfile` in itself
38-
can\'t do anything that couldn\'t already be done using read and a loop,
38+
can't do anything that couldn't already be done using read and a loop,
3939
and if portability is even a slight concern, should never be used.
4040
However, it does *significantly* outperform a read loop, and can make
4141
for shorter and cleaner code - especially convenient for interactive
@@ -62,7 +62,7 @@ Note the use of command grouping to keep the emerge command inside the
6262
pipe's subshell and within the scope of \"args\". Also note the unusual
6363
redirection. This is because the -a flag makes emerge interactive,
6464
asking the user for confirmation before continuing, and checking with
65-
isatty(3) to abort if stdin isn\'t pointed at a terminal. Since stdin of
65+
isatty(3) to abort if stdin isn't pointed at a terminal. Since stdin of
6666
the entire command group is still coming from the pipe even though
6767
mapfile has read all available input, we just borrow FD 1 as it just so
6868
happens to be pointing where we want it. More on this over at greycat's
@@ -216,6 +216,6 @@ each subsequent 2 iterations. The RETURN trap is unimportant.
216216
## See also
217217

218218
- [arrays](../../syntax/arrays.md)
219-
- [read](../../commands/builtin/read.md) - If you don\'t know about this yet,
219+
- [read](../../commands/builtin/read.md) - If you don't know about this yet,
220220
why are you reading this page?
221221
- <http://mywiki.wooledge.org/BashFAQ/001> - It's FAQ 1 for a reason.

docs/commands/builtin/printf.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ expects a comma after the format string and between each of the
1212
arguments of a **printf** command. For examples, see: [code
1313
snippet](../../printf?&.md#using_printf_inside_of_awk). \</div\>
1414

15-
Unlike other documentations, I don\'t want to redirect you to the manual
15+
Unlike other documentations, I don't want to redirect you to the manual
1616
page for the `printf()` C function family. However, if you\'re more
1717
experienced, that should be the most detailed description for the format
1818
strings and modifiers.
@@ -54,7 +54,7 @@ argument!).
5454
`-v VAR` If given, the output is assigned to the variable `VAR` instead of printed to `stdout` (comparable to `sprintf()` in some way)
5555
---------- -------------------------------------------------------------------------------------------------------------------------------
5656

57-
The `-v` Option can\'t assign directly to array indexes in Bash versions
57+
The `-v` Option can't assign directly to array indexes in Bash versions
5858
older than Bash 4.1.
5959

6060
\<note warning\> In versions newer than 4.1, one must be careful when
@@ -84,8 +84,8 @@ recognized to give a number-argument to `printf`:
8484
`0N` An octal number
8585
`0xN` A hexadecimal number
8686
`0XN` A hexadecimal number
87-
`"X` (a literal double-quote infront of a character): interpreted as number (underlying codeset) **don\'t forget escaping**
88-
`'X` (a literal single-quote infront of a character): interpreted as number (underlying codeset) **don\'t forget escaping**
87+
`"X` (a literal double-quote infront of a character): interpreted as number (underlying codeset) **don't forget escaping**
88+
`'X` (a literal single-quote infront of a character): interpreted as number (underlying codeset) **don't forget escaping**
8989

9090
[**If more arguments than format specifiers**]{.underline} are present,
9191
then the format string is re-used until the last argument is
@@ -143,7 +143,7 @@ all mean the same: A placeholder for data with a specified format:
143143
`%G` Same as `%g`, but print it like `%E`
144144
`%c` Interprets the associated argument as **char**: only the first character of a given argument is printed
145145
`%s` Interprets the associated argument literally as string
146-
`%n` Assigns the number of characters printed so far to the variable named in the corresponding argument. Can\'t specify an array index. If the given name is already an array, the value is assigned to the zeroth element.
146+
`%n` Assigns the number of characters printed so far to the variable named in the corresponding argument. Can't specify an array index. If the given name is already an array, the value is assigned to the zeroth element.
147147
`%a` Interprets the associated argument as **double**, and prints it in the form of a C99 [hexadecimal floating-point literal](http://www.exploringbinary.com/hexadecimal-floating-point-constants/).
148148
`%A` Same as `%a`, but print it like `%E`
149149
`%(FORMAT)T` output the date-time string resulting from using `FORMAT` as a format string for `strftime(3)`. The associated argument is the number of seconds since Epoch, or `-1` (current time) or `-2` (shell startup time). If no corresponding argument is supplies, the current time is used as default
@@ -192,7 +192,7 @@ that precedes the number to print, like (prints 4,3000000000):
192192

193193
printf "%.*f\n" 10 4,3
194194

195-
The format `.*N` to specify the N\'th argument for precision does not
195+
The format `.*N` to specify the N'th argument for precision does not
196196
work in Bash.
197197

198198
For strings, the precision specifies the maximum number of characters to
@@ -364,7 +364,7 @@ correct awk syntax.
364364

365365
With appropriate metacharacter escaping the bash printf can be called
366366
from inside awk (as from perl and other languages that support shell
367-
callout) as long as you don\'t care about program efficiency or
367+
callout) as long as you don't care about program efficiency or
368368
readability.
369369

370370
echo "Foo" | awk '{ system( "printf \"%s\\n \" \"" $1 "\"" ) }'
@@ -453,7 +453,7 @@ fmt++;
453453
synopsis as:
454454
`print: print [-Rnprs] [-u unit] [-f format] [arguments]`. However,
455455
only `-Rrnfu` are actually functional. Internally, `-p` is a noop
456-
(it doesn\'t tie in with Bash coprocs at all), and `-s` only sets a
456+
(it doesn't tie in with Bash coprocs at all), and `-s` only sets a
457457
flag but has no effect. `-Cev` are unimplemented.
458458

459459
```{=html}

0 commit comments

Comments
 (0)