# |
Date |
Size |
|
Editor |
Comment |
Action |
522 |
2020-09-08 20:52:02 |
77391 |
to previous |
geirha |
set -euo pipefail |
view |
521 |
2020-06-18 19:11:42 |
72598 |
to previous |
GreyCat |
more bad examples for #10 |
view |
520 |
2020-03-14 12:44:01 |
72183 |
to previous |
bzq-79-179-229-115 |
incorrect variable name 'i' instead of 'file' |
view |
519 |
2019-11-09 08:49:48 |
72204 |
to previous |
89-23-224-57 |
The 1000 limit is no longer true on my system. The general problem still holds, though. |
view |
518 |
2019-07-13 22:25:38 |
72158 |
to previous |
geirha |
mycmd might not need to be run as root, so let's not encourage it |
view |
517 |
2019-07-12 10:42:50 |
72163 |
to previous |
122 |
Add sudo tee file >/dev/null as alternative to wrapper |
view |
516 |
2019-06-17 15:41:47 |
71998 |
to previous |
GreyCat |
pf59: i=$(( 10#$i )) |
view |
515 |
2019-04-15 20:17:09 |
71470 |
to previous |
GreyCat |
expand 27 ( local var=$(cmd) ) to include dash's non-assignment behavior |
view |
514 |
2019-04-12 08:48:35 |
70992 |
to previous |
intranet |
GNU sed 4 is out since a while now |
view |
513 |
2019-02-01 18:36:10 |
71051 |
to previous |
ip68-3-80-236 |
Moving the history expansion character out of the double quotes is, I think, the simplest solution. The only issue here would be if you have ! in IFS |
view |
512 |
2019-01-24 08:55:02 |
71006 |
to previous |
ormaaj |
Too much "you". Can we do without this intro paragraph? Or, re-add a better version, or put the field splitting stuff into one of the pitfalls. |
view |
511 |
2019-01-10 11:08:31 |
71422 |
to previous |
geirha |
this ignored the status of readlink |
view |
510 |
2018-12-17 18:06:48 |
71404 |
to previous |
meme-net |
Correct bad variable name |
view |
509 |
2018-12-07 14:51:31 |
71404 |
to previous |
ormaaj |
|
view |
508 |
2018-12-01 20:36:34 |
71098 |
to previous |
ormaaj |
y=$(( array[$x] )) explained |
view |
507 |
2018-11-02 08:28:18 |
70096 |
to previous |
StephaneChazelas |
|
view |
506 |
2018-11-02 08:25:25 |
70072 |
to previous |
StephaneChazelas |
|
view |
505 |
2018-11-02 08:22:55 |
70101 |
to previous |
StephaneChazelas |
|
view |
504 |
2018-11-01 14:38:03 |
69607 |
to previous |
GreyCat |
Pitfall 58: calling date multiple times |
view |
503 |
2018-09-24 15:08:45 |
68663 |
to previous |
GreyCat |
PF 57: unset a[0] |
view |
502 |
2018-07-25 20:40:55 |
68236 |
to previous |
167 |
Changed `for i` to `for f` on loops over filenames. |
view |
501 |
2018-07-18 14:44:08 |
68236 |
to previous |
dsl |
Fixup of xargs -0 |
view |
500 |
2018-07-11 21:19:30 |
68123 |
to previous |
GreyCat |
another approach for cd-ing repeatedly |
view |
499 |
2018-07-11 14:16:32 |
67581 |
to previous |
GreyCat |
|
view |
498 |
2018-07-11 14:15:42 |
67582 |
to previous |
GreyCat |
fix anchors; show good examples (xargs -0) too |
view |
497 |
2018-07-11 08:35:54 |
67466 |
to previous |
dsl |
Added xargs without -0 |
view |
496 |
2018-05-22 18:45:37 |
66498 |
to previous |
GreyCat |
pf55: myprogram 2>&- |
view |
495 |
2018-05-14 20:24:17 |
65257 |
to previous |
GreyCat |
pf54: sudo ls /foo/* |
view |
494 |
2018-04-19 18:06:15 |
64902 |
to previous |
GreyCat |
53 sudo mycmd > /myfile |
view |
493 |
2018-04-16 12:47:31 |
64530 |
to previous |
GreyCat |
Fix up 51, add 52: code injection in find |
view |
492 |
2018-04-15 20:42:38 |
63047 |
to previous |
3224057-cl69 |
|
view |
491 |
2017-07-19 19:28:18 |
61894 |
to previous |
GreyCat |
Someone didn't understand that these examples are BROKEN, not to be used. |
view |
490 |
2017-06-01 17:23:26 |
61701 |
to previous |
81 |
local and export both mask exit status! |
view |
489 |
2017-04-25 19:49:42 |
61658 |
to previous |
GreyCat |
Touch up pitfall 1. Add globstar example. |
view |
488 |
2017-04-01 17:40:57 |
60672 |
to previous |
|
Add IFS=$'\n' read -r -d '' -a array < <(command && printf '\0') idiom |
view |
487 |
2017-03-19 13:10:28 |
60318 |
to previous |
5-100-89-129 |
changed mapfile to readarray in last example partially for consistency with previous "read -a" command, partially to fix wrong implication of command (it does not map any explicitly visible file) |
view |
486 |
2016-12-01 18:34:32 |
60316 |
to previous |
tor-exit1-readme |
|
view |
485 |
2016-11-30 18:17:15 |
60320 |
to previous |
port-92-204-42-55 |
Already mention the leading hypthen in the first pitfall. I fear that people think everything with the good example is already correct. |
view |
484 |
2016-11-21 20:56:33 |
60234 |
to previous |
tor-5 |
remove ; |
view |
483 |
2016-10-17 11:37:59 |
60235 |
to previous |
ormaaj |
There's always a way. |
view |
482 |
2016-10-14 14:49:04 |
59813 |
to previous |
GreyCat |
I have been informed that aws may not do what I expected based on reading the user's stupid script. |
view |
481 |
2016-10-14 14:43:09 |
59620 |
to previous |
GreyCat |
Pitfall 50: hosts=( $(aws ...) ) |
view |
480 |
2016-10-14 14:24:04 |
58844 |
to previous |
GreyCat |
Pitfall 49: OIFS="$IFS"; ...; IFS="$OIFS" |
view |
479 |
2016-09-24 19:04:15 |
58297 |
to previous |
geirha |
forgot the anchor |
view |
478 |
2016-09-24 18:49:28 |
58279 |
to previous |
geirha |
stray quote |
view |
477 |
2016-09-24 18:44:42 |
58280 |
to previous |
geirha |
pf 48 -- export CDPATH |
view |
476 |
2016-09-16 12:40:52 |
56968 |
to previous |
geirha |
no, the point was to show it works without the $ |
view |
475 |
2016-09-16 12:01:09 |
56969 |
to previous |
80 |
Fix a missing dereference |
view |
474 |
2016-05-14 22:17:39 |
56968 |
to previous |
tor-exit |
[ If an open bracket introduces a bracket expression as in XBD RE Bracket Expression, except that the <exclamation-mark> character ( '!' ) shall replace the <circumflex> character ( '^' ) in its |
view |
473 |
2016-03-30 12:10:15 |
56968 |
to previous |
GreyCat |
|
view |