# |
Date |
Size |
|
Editor |
Comment |
Action |
580 |
2025-04-19 14:16:22 |
93758 |
to previous |
StephaneChazelas |
|
view |
579 |
2025-04-19 09:21:35 |
93534 |
to previous |
StephaneChazelas |
more LC_CTYPE -> LC_ALL and various random improvements |
view |
578 |
2025-04-19 06:11:24 |
93186 |
to previous |
StephaneChazelas |
setting LC_CTYPE is not enough. It's in no way specific to filenames. |
view |
577 |
2025-04-19 00:11:17 |
91127 |
to previous |
GreyCat |
Pitfall 65: IFS= read -r -d '' filename |
view |
576 |
2025-01-01 00:02:23 |
89282 |
to previous |
GreyCat |
update pf61 and pf62 with new testing results |
view |
575 |
2024-12-15 16:00:34 |
88269 |
to previous |
151 |
Fix minor typo |
view |
574 |
2024-12-02 04:33:03 |
88270 |
to previous |
larryv |
sp "litteral" -> "literal" |
view |
573 |
2024-10-05 08:59:29 |
88271 |
to previous |
emanuele6 |
unnecessary ; |
view |
572 |
2024-04-04 23:09:24 |
88272 |
to previous |
larryv |
pf64: replaced broken internal link |
view |
571 |
2024-02-13 11:17:36 |
88276 |
to previous |
74 |
|
view |
570 |
2024-02-13 02:24:36 |
88278 |
to previous |
74 |
New bash-version-portable way to safely modify an element of an associative array in a calculation. 62. |
view |
569 |
2023-08-30 22:36:54 |
87954 |
to previous |
emanuele6 |
pf 64: apparently it also happens for {var} redirections |
view |
568 |
2023-06-26 22:51:12 |
87939 |
to previous |
GreyCat |
pf62: alternatives |
view |
567 |
2023-04-02 21:43:01 |
87687 |
to previous |
emanuele6 |
pf 49: printf%s => printf%s\\n |
view |
566 |
2023-04-02 19:37:37 |
87678 |
to previous |
ormaaj |
pf 49: echo -> printf |
view |
565 |
2023-01-05 19:04:41 |
87691 |
to previous |
emanuele6 |
unset => `unset` |
view |
564 |
2023-01-05 00:18:22 |
87689 |
to previous |
larryv |
fixed typo |
view |
563 |
2023-01-04 17:23:34 |
87690 |
to previous |
emanuele6 |
pf57: it seems that unset 'a[0]' doesn't actually delete functions named a[0], even if there is no a variable. you need to specify -f. i think this is probably a bug |
view |
562 |
2023-01-04 16:53:03 |
87373 |
to previous |
emanuele6 |
pf57: suggest using -v with unset, anad explain why |
view |
561 |
2022-12-10 14:33:19 |
87116 |
to previous |
GreyCat |
PF47 variant: read with fixed number of fields, and a single separator at the end of the last field. |
view |
560 |
2022-12-03 00:34:15 |
86030 |
to previous |
115 |
typofix |
view |
559 |
2022-12-02 16:22:14 |
86031 |
to previous |
emanuele6 |
pf27+28: remove (outdated?) "like dash" |
view |
558 |
2022-12-02 16:09:49 |
86055 |
to previous |
emanuele6 |
pf27: mention readonly, add syntax highlighting |
view |
557 |
2022-10-24 03:13:18 |
86027 |
to previous |
emanuele6 |
pf64: correct command output in examples |
view |
556 |
2022-10-24 02:27:47 |
86027 |
to previous |
emanuele6 |
pf64: use an example that makes more sense than (wait) >(...) |
view |
555 |
2022-10-24 02:00:53 |
86013 |
to previous |
emanuele6 |
pf64: fix example |
view |
554 |
2022-10-24 01:48:50 |
86022 |
to previous |
emanuele6 |
pf64: mention an example similar to the one described here https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00107.html |
view |
553 |
2022-10-24 01:45:26 |
86003 |
to previous |
emanuele6 |
pf64: mention that the optimisation is also applied to subshell compound commands |
view |
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 |
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 |
472 |
2016-03-30 12:06:52 |
56730 |
to previous |
GreyCat |
[ x == y ] is NOT valid in posix shells. It is a bashism. I will add some clarifying language after this revert. |
view |
471 |
2016-03-30 02:06:52 |
56490 |
to previous |
aftr-5-146-249-61 |
This simply isn't true - '==' works in '['! |
view |
470 |
2016-03-08 05:41:15 |
56730 |
to previous |
ool-457d9675 |
emphasize "for x;do" more in example 24 |
view |
469 |
2016-03-02 08:11:54 |
56652 |
to previous |
lmcb-76 |
Added a comment about using find for pitfall 1. bolded the so whats the right way to do it. |
view |
468 |
2016-01-18 13:03:44 |
56502 |
to previous |
StephaneChazelas |
|
view |
467 |
2016-01-18 13:02:01 |
56497 |
to previous |
StephaneChazelas |
|
view |
466 |
2016-01-18 12:50:50 |
56163 |
to previous |
StephaneChazelas |
Mention that it also concerns symlinks to inaccessible files. |
view |
465 |
2016-01-18 12:44:39 |
56026 |
to previous |
StephaneChazelas |
errors on stderr |
view |
464 |
2016-01-11 21:25:12 |
56022 |
to previous |
GreyCat |
not perfectly... |
view |
463 |
2015-12-24 00:38:26 |
56024 |
to previous |
GreyCat |
((foo > 7)) and [[ foo -gt 7 ]] are both *correct*, in both bash and ksh. Try 'em. |
view |
462 |
2015-12-23 17:30:55 |
56026 |
to previous |
38 |
Adds missing $ signs in first part of Pitfall 7. |
view |
461 |
2015-11-26 15:34:38 |
56024 |
to previous |
GreyCat |
Completely incorrect assertion. Try this: var="-n"; echo "$var" Even if your assertion WERE true for bash >= n we would still have to mark it a pitfall for other shells/versions. |
view |
460 |
2015-11-26 08:18:12 |
55716 |
to previous |
pool-173-61-210-188 |
Removed claim that echo can't safely display a variable like var="-n Text". As of bash 4.1.7, echo $var _will_ interpret the leading -n as a flag, but echo "$var" will print exactly what's expected. |
view |
459 |
2015-11-22 21:25:54 |
56024 |
to previous |
GreyCat |
ssh (or ffmpeg) only running once in a while read loop is FAQ 89 |
view |
458 |
2015-11-22 20:48:03 |
56519 |
to previous |
199 |
|
view |
457 |
2015-09-02 15:13:49 |
56024 |
to previous |
GreyCat |
Put the UMQ right up top. Change some wording. |
view |
456 |
2015-09-02 14:47:54 |
55095 |
to previous |
GreyCat |
no, IFS=$'\n' won't work either |
view |
455 |
2015-09-02 13:05:50 |
54761 |
to previous |
cpc38-dudl11-2-0-cust78 |
|
view |
454 |
2015-08-18 08:42:11 |
54695 |
to previous |
geirha |
The description of how sed works, and even the proposed solution is wrong. |
view |
453 |
2015-08-17 23:23:13 |
55177 |
to previous |
pool-100-32-136-77 |
added pitfal on using sed to grab values from stream |
view |
452 |
2015-08-13 11:55:05 |
54695 |
to previous |
GreyCat |
No, it really was pitfall #2. Not #3. But screw it. Just put English words directly in the comment. |
view |
451 |
2015-08-13 02:32:38 |
54693 |
to previous |
llua |
|
view |
450 |
2015-04-18 22:02:23 |
54627 |
to previous |
GreyCat |
IFS=, read -ra fields <<< "$csv_line" |
view |
449 |
2015-04-18 21:51:18 |
53375 |
to previous |
GreyCat |
fix anchors |
view |
448 |
2014-11-02 11:37:32 |
53423 |
to previous |
vil69-1-82-67-51-185 |
|
view |
447 |
2014-10-10 12:10:04 |
53354 |
to previous |
pgas |
|
view |
446 |
2014-09-22 18:02:34 |
53099 |
to previous |
freedom2 |
|
view |
445 |
2014-07-05 09:08:40 |
52949 |
to previous |
MikeJonkmans |
added some words on `]` |
view |
444 |
2014-06-28 13:44:22 |
52712 |
to previous |
ormaaj |
Don't use which(1). Since [ is usually builtin, which will lie to you. |
view |
443 |
2014-06-27 14:53:19 |
52718 |
to previous |
gbibp9ph1--blueice3n7 |
|
view |
442 |
2014-06-25 20:05:28 |
52658 |
to previous |
ormaaj |
mksh now supports pipefail. |
view |
441 |
2014-06-02 14:56:14 |
52590 |
to previous |
GreyCat |
y=$(( array[$x] )) code injection |
view |
440 |
2014-04-06 16:42:55 |
51679 |
to previous |
212 |
typo fixed |
view |
439 |
2014-03-27 12:12:34 |
51680 |
to previous |
GreyCat |
indentation in PF 4 |
view |
438 |
2014-01-24 21:17:15 |
51667 |
to previous |
geirha |
just testing what the gui editor would do |
view |
437 |
2014-01-24 21:15:01 |
51739 |
to previous |
geirha |
|
view |
436 |
2014-01-24 21:08:49 |
51667 |
to previous |
GreyCat |
Please don't put blank lines between Anchor and question. Greybot parses this, and those break it. |
view |
435 |
2014-01-21 13:47:04 |
51741 |
to previous |
GreyCat |
|
view |
434 |
2014-01-21 13:44:49 |
51736 |
to previous |
GreyCat |
remove set -e stuff; I merged it into FAQ 105 |
view |
433 |
2014-01-21 11:40:30 |
52200 |
to previous |
mx1 |
|
view |
432 |
2014-01-07 18:22:44 |
51764 |
to previous |
StephaneChazelas |
removed note about quote nesting for backticks which is incorrect, add missing -P and -- for cd and dirname |
view |
431 |
2014-01-07 18:17:14 |
51877 |
to previous |
StephaneChazelas |
adding missing quotes |
view |
430 |
2013-12-16 16:46:51 |
51867 |
to previous |
94 |
Ever heard of the ext4 data loss "bug"? |
view |
429 |
2013-10-18 15:45:47 |
51740 |
to previous |
GreyCat |
PF35: same issue with [[ $foo = "glob" ]] |
view |
428 |
2013-10-13 05:41:43 |
51499 |
to previous |
76-10-140-160 |
added missing quotes around possible GLOB |
view |
427 |
2013-08-05 00:51:47 |
51456 |
to previous |
shmdmzpr03-ext |
|
view |
426 |
2013-07-03 12:33:03 |
51467 |
to previous |
fran |
Don't break out of loop in case a file has been removed before it is processed. |
view |
425 |
2013-06-06 10:52:15 |
51464 |
to previous |
host223-59-dynamic |
|
view |
424 |
2013-04-18 05:49:06 |
51457 |
to previous |
geirha |
Revert to revision 422. |
view |
423 |
2013-04-17 12:23:17 |
51458 |
to previous |
92 |
|
view |
422 |
2013-04-04 22:45:26 |
51457 |
to previous |
GreyCat |
Variables in a math context DON'T require a $ to be expanded. That was kinda the point of the "Works, but most will consider it wrong" comment. |
view |
421 |
2013-04-04 12:24:30 |
51459 |
to previous |
95 |
variable require $ prefix |
view |
420 |
2013-03-25 12:48:41 |
51457 |
to previous |
GreyCat |
pf41: (lack of) portability note |
view |
419 |
2013-03-24 11:02:48 |
51419 |
to previous |
ormaaj |
Add crappy array wordsplit abuse to pf 1 |
view |
418 |
2013-03-24 10:47:50 |
51341 |
to previous |
ormaaj |
|
view |
417 |
2013-03-24 10:44:33 |
51332 |
to previous |
ormaaj |
There's nothing wrong with this expression, people just need to be aware of its behavior. |
view |
416 |
2013-02-11 01:26:07 |
50308 |
to previous |
ormaaj |
Had to fix indenting. Also, done through pf 11 |
view |
415 |
2013-02-10 22:24:50 |
49735 |
to previous |
ormaaj |
Copy editing. Pf 1-8 done. Enough for today. |
view |
414 |
2013-02-09 17:32:16 |
46184 |
to previous |
ormaaj |
Buggy solution. Needs either -- or to not to strip the ./. |
view |
413 |
2013-01-27 06:38:12 |
46291 |
to previous |
Lhunath |
nonsense edit. |
view |
412 |
2013-01-27 04:17:04 |
46294 |
to previous |
18 |
|
view |
411 |
2013-01-15 21:19:30 |
46291 |
to previous |
GreyCat |
link to UsingFind in #1 |
view |
410 |
2013-01-03 13:11:40 |
46231 |
to previous |
GreyCat |
simplify |
view |
409 |
2013-01-03 10:11:21 |
46244 |
to previous |
ormaaj |
(($?)) && ... |
view |
408 |
2012-12-20 16:43:27 |
45589 |
to previous |
HSI-KBW-46-223-133-42 |
|
view |
407 |
2012-12-20 16:32:05 |
45565 |
to previous |
HSI-KBW-46-223-133-42 |
|
view |
406 |
2012-09-03 12:30:35 |
45306 |
to previous |
nrbg-4dbe18f3 |
Let's provoke a disaster on Debian too that can be taken seriously. Here, rm * will _always_ (by default) do a rm -i *. (Except for the superuser) |
view |
405 |
2012-07-30 09:49:49 |
45303 |
to previous |
151 |
pitfall 23: exmark='!' ; echo "Hello, world$exmark" |
view |
404 |
2012-07-21 19:36:26 |
45225 |
to previous |
178 |
Mention Substring Expansion for removing first character of a word |
view |
403 |
2012-07-21 19:19:34 |
45157 |
to previous |
178 |
|
view |
402 |
2012-06-28 15:53:52 |
45161 |
to previous |
201 |
We have to be consistent in variable naming conventions. !varcap. |
view |
401 |
2012-04-23 16:41:01 |
45161 |
to previous |
c-71-232-80-14 |
|
view |
400 |
2012-04-04 03:57:57 |
44974 |
to previous |
ormaaj |
2>&1. How'd we go without this so long? |
view |
399 |
2012-04-02 10:10:42 |
43922 |
to previous |
Lhunath |
don't take personal offense, 125, and thanks for the contribution. |
view |
398 |
2012-04-02 09:08:39 |
43955 |
to previous |
125 |
sorry for mistakes ive made. |
view |
397 |
2012-04-02 08:36:10 |
44112 |
to previous |
125 |
|
view |
396 |
2012-04-02 06:45:59 |
43955 |
to previous |
Lhunath |
|
view |
395 |
2012-04-02 06:44:15 |
43955 |
to previous |
Lhunath |
|
view |
394 |
2012-04-02 04:53:54 |
43684 |
to previous |
125 |
|
view |
393 |
2012-04-02 04:51:13 |
43679 |
to previous |
125 |
|
view |
392 |
2012-03-29 20:49:26 |
42242 |
to previous |
ormaaj |
use greycat's version. |
view |
391 |
2012-03-29 20:46:54 |
41881 |
to previous |
ormaaj |
Too long, greycat angry, so move to BraceExpansion |
view |
390 |
2012-03-29 20:45:22 |
42242 |
to previous |
GreyCat |
Strip esoteric crap out of #33 (for i in {1..$n}). If the material is important, please put it on BraceExpansion or in a separate FAQ entry. Removed redundant category tags. |
view |
389 |
2012-03-29 19:32:35 |
44031 |
to previous |
ormaaj |
...and add some workarounds to make it generalize to not only loops. This might be long enough for an FAQ. |
view |
388 |
2012-03-28 00:07:32 |
42503 |
to previous |
ormaaj |
Brace expansion "portability" note. The Bash way isn't entirely "unfortunate". |
view |
387 |
2012-02-22 09:26:34 |
41881 |
to previous |
129 |
"[[ -f $i ]] || continue" changed to '[[ -f "$i" ]] || continue' |
view |
386 |
2011-11-27 02:05:53 |
41879 |
to previous |
184-175-28-167 |
|
view |
385 |
2011-11-08 16:16:20 |
41838 |
to previous |
GreyCat |
answer question in #1 |
view |
384 |
2011-11-08 12:53:12 |
41701 |
to previous |
129 |
|
view |
383 |
2011-09-22 21:51:35 |
41528 |
to previous |
cust |
zsh will accept such syntax too |
view |
382 |
2011-08-21 18:44:50 |
41482 |
to previous |
35 |
|
view |
381 |
2011-08-10 18:07:47 |
41476 |
to previous |
GreyCat |
perl's grep command has nothing to do with variables being lost because they were set in a subshell in a bash script |
view |