# |
Date |
Size |
|
Editor |
Comment |
Action |
56 |
2025-01-30 04:47:30 |
8719 |
to previous |
larryv |
added extra whitespace for breathing room, standardized on 4-space indentation, made "highlight" languages more accurate |
view |
55 |
2025-01-30 04:39:59 |
8678 |
to previous |
larryv |
normalized examples further (tried to cover both "empty" and "not empty", tweaked language again) |
view |
54 |
2025-01-30 04:17:13 |
8403 |
to previous |
larryv |
fixed example ("${files[@]}" -> "${#files[@]}") |
view |
53 |
2025-01-30 04:15:42 |
8402 |
to previous |
larryv |
normalize example messages throughout ("directory [VERB]") |
view |
52 |
2025-01-30 04:09:02 |
8380 |
to previous |
larryv |
partially undid rev 51 (do not encourage injecting variables into `echo` args) |
view |
51 |
2025-01-29 23:00:58 |
8354 |
to previous |
81 |
Streamline messages. Prefer echo when printf features are not needed |
view |
50 |
2023-03-28 07:52:15 |
8609 |
to previous |
emanuele6 |
-maxdepth 0 can just be -prune |
view |
49 |
2023-03-28 07:50:38 |
8614 |
to previous |
emanuele6 |
echo => printf |
view |
48 |
2023-03-25 23:05:15 |
8605 |
to previous |
emanuele6 |
$1 => $@, why not |
view |
47 |
2023-03-25 23:00:08 |
8605 |
to previous |
emanuele6 |
mentions pitfalls of using failglob without () |
view |
46 |
2023-03-23 14:03:13 |
7377 |
to previous |
GreyCat |
add compgen -G alternatives |
view |
45 |
2022-08-11 12:37:54 |
6615 |
to previous |
emanuele6 |
clarify that some of the "Bourne solutions" will also work in POSIX sh :/ |
view |
44 |
2022-05-06 13:08:13 |
6599 |
to previous |
emanuele6 |
remove unnecessary semicolon |
view |
43 |
2021-08-14 15:40:24 |
6600 |
to previous |
GreyCat |
Fix POSIX example which only worked if the first of the 3 globs matched a file. |
view |
42 |
2021-08-14 15:17:29 |
6560 |
to previous |
GreyCat |
Undo stupid formatting changes that break the FAQ. |
view |
41 |
2021-08-14 11:49:29 |
6544 |
to previous |
PeterAjamian |
Added failglob method. |
view |
40 |
2020-07-27 15:05:25 |
6237 |
to previous |
GreyCat |
link to ArithmeticExpression too, because some people need it |
view |
39 |
2019-07-09 19:38:15 |
6164 |
to previous |
47 |
Add .[!.]* and ..?* globs for POSIX examples, use -exec printf %.0s. {} + for the find example removing need for a shell |
view |
38 |
2016-10-23 17:29:32 |
6176 |
to previous |
toreador |
|
view |
37 |
2016-07-28 18:36:07 |
6177 |
to previous |
GreyCat |
more posix sh approaches |
view |
36 |
2015-03-05 00:20:13 |
5228 |
to previous |
izabera |
syntax hl |
view |
35 |
2012-01-13 09:37:49 |
5260 |
to previous |
ght |
mention failglob |
view |
34 |
2011-12-13 13:42:53 |
5215 |
to previous |
GreyCat |
Wow... very much cleanup. |
view |
33 |
2011-12-13 10:17:36 |
4981 |
to previous |
Lhunath |
simpler. |
view |
32 |
2011-12-13 10:17:00 |
4441 |
to previous |
Lhunath |
simpler. |
view |
31 |
2011-11-06 09:37:01 |
4114 |
to previous |
ormaaj |
Other shells |
view |
30 |
2011-05-26 13:17:47 |
3781 |
to previous |
sbl-eh4-rp1 |
|
view |
29 |
2011-03-22 16:49:02 |
3635 |
to previous |
GreyCat |
counting too |
view |
28 |
2011-03-21 13:20:36 |
3173 |
to previous |
passionsfrucht |
|
view |
27 |
2011-03-17 15:17:02 |
3175 |
to previous |
84-73-54-61 |
|
view |
26 |
2009-12-29 17:17:00 |
3179 |
to previous |
MatthiasPopp |
|
view |
25 |
2009-12-15 20:21:14 |
3156 |
to previous |
GreyCat |
pointer to 097 (dangling symlink) |
view |
24 |
2009-12-11 14:06:05 |
3140 |
to previous |
GreyCat |
clean up, quite a bit |
view |
23 |
2009-07-20 18:09:15 |
2700 |
to previous |
localhost |
|
view |
22 |
2009-07-10 14:06:56 |
2692 |
to previous |
NeilMoore |
make second example have the same polarity as the first |
view |
21 |
2009-05-11 21:38:33 |
2700 |
to previous |
Lhunath |
|
view |
20 |
2009-05-05 19:25:06 |
2262 |
to previous |
localhost |
|
view |
19 |
2008-11-22 20:57:36 |
2250 |
to previous |
GreyCat |
new first-line standard |
view |
18 |
2008-11-22 14:08:36 |
2232 |
to previous |
localhost |
converted to 1.6 markup |
view |
17 |
2008-10-14 19:58:58 |
2230 |
to previous |
GreyCat |
Bourne: test ! is ok but ! command is not. |
view |
16 |
2008-10-11 23:15:10 |
2230 |
to previous |
GreyCat |
Revert to revision 14. |
view |
15 |
2008-10-11 21:57:53 |
2231 |
to previous |
gw |
backticks to $() |
view |
14 |
2008-10-06 03:19:49 |
2230 |
to previous |
GreyCat |
No, Bourne shell doesn't have $(). Or [. |
view |
13 |
2008-10-06 00:45:44 |
2343 |
to previous |
gw |
backticks to $() |
view |
12 |
2008-09-27 16:02:36 |
2342 |
to previous |
82-71-12-170 |
I forgot about dot files. The portable solution is now even uglier, and relies on .* expanding to exactly . .. in empty dirs... will it? Maybe add other solutions with warnings |
view |
11 |
2008-09-27 02:38:15 |
2217 |
to previous |
82-71-12-170 |
put bash solutions at top, removed bash-specific non-array solution (what's wrong with arrays?), removed ls -A solutions (if you want to not use a specific shell you may as well TRY to be portable) |
view |
10 |
2008-06-23 16:07:23 |
2711 |
to previous |
GreyCat |
fix aforementioned example, add another, clean up |
view |
9 |
2008-06-23 15:25:07 |
2596 |
to previous |
chello062178030209 |
Added example showing the use of find's -empty option |
view |
8 |
2008-05-09 15:33:37 |
2531 |
to previous |
GreyCat |
Revert to revision 6. |
view |
7 |
2008-05-09 14:45:17 |
2531 |
to previous |
Lhunath |
when checking to see whether content in `i` denotes a file that exists instead of a literal `*.zip` there's no need to further restrict the test to also test whether the file is a 'regular file'. |
view |
6 |
2008-05-09 14:36:59 |
2531 |
to previous |
GreyCat |
add text to the question so people will READ the faq when they're told to |
view |
5 |
2008-05-08 23:14:00 |
2494 |
to previous |
GreyCat |
#faqNN -> /0NN |
view |
4 |
2007-11-30 02:51:06 |
2495 |
to previous |
GreyCat |
change internal link |
view |
3 |
2007-11-14 17:43:06 |
2487 |
to previous |
GreyCat |
|
view |
2 |
2007-05-03 00:51:48 |
2057 |
to previous |
GreyCat |
last example doesn't need the directory printed twice |
view |
1 |
2007-05-02 22:47:44 |
2071 |
|
redondos |
|
view |