You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
58
58
older than Bash 4.1.
59
59
60
60
\<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`:
84
84
`0N` An octal number
85
85
`0xN` A hexadecimal number
86
86
`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**
89
89
90
90
[**If more arguments than format specifiers**]{.underline} are present,
91
91
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:
143
143
`%G` Same as `%g`, but print it like `%E`
144
144
`%c` Interprets the associated argument as **char**: only the first character of a given argument is printed
145
145
`%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.
147
147
`%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/).
148
148
`%A` Same as `%a`, but print it like `%E`
149
149
`%(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):
192
192
193
193
printf "%.*f\n" 10 4,3
194
194
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
196
196
work in Bash.
197
197
198
198
For strings, the precision specifies the maximum number of characters to
@@ -364,7 +364,7 @@ correct awk syntax.
364
364
365
365
With appropriate metacharacter escaping the bash printf can be called
366
366
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
Copy file name to clipboardExpand all lines: docs/commands/builtin/read.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ line is read). That means the timeout can occur during input, too.
49
49
`-N <NCHARS>` reads `<NCHARS>` characters of input, *ignoring any delimiter*, then quits
50
50
`-p <PROMPT>` the prompt string `<PROMPT>` is output (without a trailing automatic newline) before the read is performed
51
51
`-r` raw input - **disables** interpretion of **backslash escapes** and **line-continuation** in the read data
52
-
`-s` secure input - don\'t echo input if on a terminal (passwords!)
52
+
`-s` secure input - don't echo input if on a terminal (passwords!)
53
53
`-t <TIMEOUT>` wait for data `<TIMEOUT>` seconds, then quit (exit code 1). Fractional seconds (\"5.33\") are allowed since Bash 4. A value of 0 immediately returns and indicates if data is waiting in the exit code. Timeout is indicated by an exit code greater than 128. If timeout arrives before data is read completely (before end-of-line), the partial data is saved.
54
54
`-u <FD>` use the filedescriptor number `<FD>` rather than `stdin` (0)
55
55
@@ -254,9 +254,9 @@ date/time string are recognized correctly.
254
254
255
255
- POSIX(r) only specified the `-r` option (raw read); `-r` is not only
256
256
POSIX, you can find it in earlier Bourne source code
257
-
- POSIX(r) doesn\'t support arrays
257
+
- POSIX(r) doesn't support arrays
258
258
-`REPLY` is not POSIX(r), you need to set `IFS` to the empty string
259
-
to get the whole line for shells that don\'t know `REPLY`.
259
+
to get the whole line for shells that don't know `REPLY`.
`-a``allexport` Automatically mark new and altered variables to be exported to subsequent environments.
30
-
`-b``notify` Don\'t wait for the next prompt to print when showing the reports for a terminated background job (only with job control)
30
+
`-b``notify` Don't wait for the next prompt to print when showing the reports for a terminated background job (only with job control)
31
31
`-e``errexit` When set, the shell exits when a simple command in a command list exits non-zero (`FALSE`). This is not done in situations, where the exit code is already checked (`if`, `while`, `until`, `||`, `&&`)
`-h``hashall` Remembers the location of commands when they\'re called (hashing). Enabled by default.
@@ -41,10 +41,10 @@ set flags (true for most commands on UNIX(r)).
41
41
`-v``verbose` Print shell input lines as they are read - useful for debugging.
42
42
`-x``xtrace` Print commands just before execution - with all expansions and substitutions done, and words marked - useful for debugging.
43
43
`-B``braceexpand` The shell performs [brace expansion](../../syntax/expansion/brace.md) This is on by default.
44
-
`-C`\<BOOKMARK:tag_noclobber\>`noclobber` Don\'t overwrite files on redirection operations. You can override that by specifying the `>|` redirection operator when needed. See [redirection](../../syntax/redirection.md)
44
+
`-C`\<BOOKMARK:tag_noclobber\>`noclobber` Don't overwrite files on redirection operations. You can override that by specifying the `>|` redirection operator when needed. See [redirection](../../syntax/redirection.md)
45
45
`-E``errtrace``ERR`-traps are inherited by by shell functions, command substitutions, and commands executed in a subshell environment.
46
46
`-H``histexpand` Enable `!`-style history expansion. Defaults to `on` for interactive shells.
47
-
`-P``physical` Don\'t follow symlinks when changing directories - use the physical filesystem structure.
47
+
`-P``physical` Don't follow symlinks when changing directories - use the physical filesystem structure.
48
48
`-T``functrace``DEBUG`- and `RETURN`-traps are inherited by subsequent environments, like `-E` for `ERR` trap.
49
49
`-`\"End of options\" - all following arguments are assigned to the positional parameters, even when they begin with a dash. `-x` and `-v` options are turned off. Positional parameters are unchanged (unlike using `--`!) when no further arguments are given.
50
50
`--` If no arguments follow, the positional parameters are unset. With arguments, the positional parameters are set, even if the strings begin with a `-` (dash) like an option.
0 commit comments