@@ -121,6 +121,18 @@ $ ch find -mtime
121
121
affects the interpretation of file modification times.
122
122
` ` `
123
123
124
+ * ` man` pages with short and long option both starting with single -
125
+
126
+ ` ` ` bash
127
+ $ ch rename -verbose -n
128
+ rename - renames multiple files
129
+
130
+ -v, -verbose
131
+ Verbose: print names of files successfully renamed.
132
+ -n, -nono
133
+ No action: print names of files to be renamed, but don' t rename.
134
+ ```
135
+
124
136
* Multiple arguments
125
137
126
138
```bash
@@ -220,53 +232,20 @@ $ # ideally, it should be
220
232
* special characters
221
233
222
234
```bash
223
- $ # should have extracted only option line instead of word search
224
- $ ch printf %%
225
- printf - format and print data
226
-
227
- \U HHHHHHHH
228
- Unicode character with hex value HHHHHHHH (8 digits)
229
-
230
- %% a single %
231
-
232
- %b ARGUMENT as a string with ' \' escapes interpreted, except that octal escapes are of the form \0 or
233
- \0 NNN
234
-
235
- $ # similarly, doesn't recognize escaped sequences like \a, \e and so on
236
- $ ch printf \e
237
- printf - format and print data
238
-
239
-
240
- \c produce no further output
241
-
242
- \e escape
243
-
244
- \f form feed
245
- ` ` `
246
-
247
- * ` man` pages with short and long option both starting with single -
248
-
249
- ` ` ` bash
250
- $ # it is treated as seven single options: `-v`, `-e`, `-r`, `-b`, `-o`, `-s` and `-e`
251
- $ # also note, no check for repetitive options given
252
- $ ch rename -verbose
253
- rename - renames multiple files
254
-
255
- -v, -verbose
256
- Verbose: print names of files successfully renamed.
257
-
258
- -e Expression: code to act on files name.
259
-
260
-
261
-
262
-
263
-
264
- -e Expression: code to act on files name.
235
+ $ # should have extracted only option line
236
+ $ ch printf %b
237
+ printf - Formats and prints ARGUMENTS under control of the FORMAT.
238
+
239
+ %b expand backslash escape sequences in the corresponding argument
240
+ %q quote the argument in a way that can be reused as shell input
241
+ %(fmt)T output the date-time string resulting from using FMT as a format
242
+ string for strftime(3)
265
243
```
266
244
267
245
* option matching text of another option description
268
246
269
247
```bash
248
+ $ # depends on width of terminal, this issue seen on 120 as width
270
249
$ ch sort -V
271
250
sort - sort lines of text files
272
251
0 commit comments