# |
Date |
Size |
|
Editor |
Comment |
Action |
552 |
2022-10-20 21:39:02 |
85355 |
to previous |
emanuele6 |
add pf64: simple command redirections may run in a subshell |
view |
551 |
2022-09-30 10:56:19 |
83873 |
to previous |
ormaaj |
|
view |
550 |
2022-09-27 21:10:36 |
82841 |
to previous |
GreyCat |
bash 5.2 breaks one of the workarounds in Pitfall 62 |
view |
549 |
2022-09-20 04:32:03 |
83370 |
to previous |
emanuele6 |
pf45: fix code indentation, add syntax highlighting |
view |
548 |
2022-09-20 04:30:06 |
83348 |
to previous |
emanuele6 |
pf45: correct invalid code in example |
view |
547 |
2022-08-18 09:06:57 |
83314 |
to previous |
194 |
Reverting: skipping the `$` sign is OK for the `-gt`, `-lt`, `-ge`, `-le` operators in `[[` context. Can't find where this is documented, but it might have been intentionally omitted. |
view |
546 |
2022-08-18 08:35:37 |
83315 |
to previous |
194 |
Add missing $ sign for using a variable in a [[ comparison as intended rather than a string literal. |
view |
545 |
2022-06-27 05:53:57 |
83314 |
to previous |
ormaaj |
errexit - relevent link. |
view |
544 |
2022-03-13 20:31:23 |
83243 |
to previous |
bashrc |
normalize code block alignment |
view |
543 |
2022-03-13 20:18:15 |
83390 |
to previous |
bashrc |
typos, grammar, markup fixes |
view |
542 |
2022-03-07 04:43:16 |
83322 |
to previous |
ormaaj |
more variable name stufff :/ |
view |
541 |
2022-03-07 03:40:35 |
82801 |
to previous |
larryv |
4: mention that "!" and "(" also cause problems, even for Heirloom |
view |
540 |
2022-03-07 03:37:42 |
82931 |
to previous |
larryv |
4: reword description of the x-hack; link to Vidar Holen's notes |
view |
539 |
2022-02-17 15:34:38 |
82936 |
to previous |
bashrc |
|
view |
538 |
2022-02-17 15:23:04 |
82940 |
to previous |
bashrc |
replace all non-code instances of '--' with '—' to avoid confusion |
view |
537 |
2022-02-17 15:16:51 |
82930 |
to previous |
bashrc |
replace "..." with "…" to avoid syntax confusion |
view |
536 |
2022-02-17 15:01:05 |
82931 |
to previous |
bashrc |
fix grammar |
view |
535 |
2021-08-02 23:06:45 |
82937 |
to previous |
GreyCat |
63: while ... done <<< "$(foo)" |
view |
534 |
2021-06-04 19:33:41 |
81330 |
to previous |
ormaaj |
|
view |
533 |
2021-06-04 14:47:15 |
81305 |
to previous |
ormaaj |
|
view |
532 |
2021-06-04 14:43:46 |
81316 |
to previous |
ormaaj |
45 rephrase |
view |
531 |
2021-03-11 07:19:30 |
81188 |
to previous |
geirha |
redirection doesn't match up with example output |
view |
530 |
2021-02-23 23:34:10 |
81200 |
to previous |
GreyCat |
more on 62 |
view |
529 |
2021-02-23 13:11:09 |
80684 |
to previous |
GreyCat |
62: (( hash[$key]++ )) |
view |
528 |
2021-02-15 19:02:10 |
79440 |
to previous |
GreyCat |
61: [[ -v hash[$key] ]] |
view |
527 |
2020-10-15 11:19:55 |
78517 |
to previous |
StephaneChazelas |
|
view |
526 |
2020-10-15 09:38:40 |
78162 |
to previous |
StephaneChazelas |
[0-9] and [[:digit:]] can match all sorts of things besides 0123456789. Better to rule out the empty string even if it would be interpreted as 0. It's critical to quote expansions in arguments to `[` |
view |
525 |
2020-10-14 14:10:07 |
77345 |
to previous |
intranet |
remove questionable wording |
view |
524 |
2020-09-08 21:12:16 |
77382 |
to previous |
geirha |
odd linebreak |
view |
523 |
2020-09-08 21:01:59 |
77387 |
to previous |
geirha |
minor changes from #bash feedback |
view |
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 |