aboutsummaryrefslogtreecommitdiff
path: root/du.c
diff options
context:
space:
mode:
authorerik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-10 05:05:45 +0000
committererik <erik@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-05-10 05:05:45 +0000
commitfd673823274fa906565261a2379e0220da57d25c (patch)
tree8db9c40b68387c1017007f5265e45c2a66ccfb0d /du.c
parente144dae9090513ce4d585206c5537ee105279792 (diff)
downloadbusybox-w32-fd673823274fa906565261a2379e0220da57d25c.tar.gz
busybox-w32-fd673823274fa906565261a2379e0220da57d25c.tar.bz2
busybox-w32-fd673823274fa906565261a2379e0220da57d25c.zip
* cp -fa now works as expected for symlinks (it didn't before)
* zcat works again (wasn't working since option parsing was broken) * more doc updates/more support for BB_FEATURE_SIMPLE_HELP -Erik git-svn-id: svn://busybox.net/trunk/busybox@530 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'du.c')
-rw-r--r--du.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/du.c b/du.c
index c4fb3a38d..9c699978e 100644
--- a/du.c
+++ b/du.c
@@ -36,12 +36,15 @@
36typedef void (Display) (long, char *); 36typedef void (Display) (long, char *);
37 37
38static const char du_usage[] = 38static const char du_usage[] =
39 "du [OPTION]... [FILE]...\n\n" 39 "du [OPTION]... [FILE]...\n"
40 "Summarize disk space used for each FILE and/or directory.\n" 40#ifndef BB_FEATURE_TRIVIAL_HELP
41 "\nSummarizes disk space used for each FILE and/or directory.\n"
41 "Disk space is printed in units of 1024 bytes.\n\n" 42 "Disk space is printed in units of 1024 bytes.\n\n"
42 "Options:\n" 43 "Options:\n"
43 "\t-l\tcount sizes many times if hard linked\n" 44 "\t-l\tcount sizes many times if hard linked\n"
44 "\t-s\tdisplay only a total for each argument\n"; 45 "\t-s\tdisplay only a total for each argument\n"
46#endif
47 ;
45 48
46static int du_depth = 0; 49static int du_depth = 0;
47static int count_hardlinks = 0; 50static int count_hardlinks = 0;
@@ -181,7 +184,7 @@ int du_main(int argc, char **argv)
181 exit(0); 184 exit(0);
182} 185}
183 186
184/* $Id: du.c,v 1.18 2000/04/28 00:18:56 erik Exp $ */ 187/* $Id: du.c,v 1.19 2000/05/10 05:05:45 erik Exp $ */
185/* 188/*
186Local Variables: 189Local Variables:
187c-file-style: "linux" 190c-file-style: "linux"