aboutsummaryrefslogtreecommitdiff
path: root/coreutils
Commit message (Collapse)AuthorAgeFilesLines
...
* ls: reorder and rename functions. No code changesGravatar Denys Vlasenko2011-05-131-238/+240
| | | | | | | | | | | | | | function old new delta display_single - 931 +931 scan_and_display_dirs_recur - 497 +497 display_files - 422 +422 showfiles 422 - -422 showdirs 497 - -497 list_single 931 - -931 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 0/0 up/down: 1850/-1850) Total: 0 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: reduce memory consumption and speed up (don't do redundant [l]stat)Gravatar Denys Vlasenko2011-05-131-158/+210
| | | | | | | | | | | | function old new delta my_stat 110 278 +168 splitdnarray 120 118 -2 ls_main 769 765 -4 list_single 961 931 -30 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 168/-36) Total: 132 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: avoid forward declaration. No code changesGravatar Denys Vlasenko2011-05-131-45/+43
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: code shrinkGravatar Denys Vlasenko2011-05-131-32/+21
| | | | | | | function old new delta list_single 990 961 -29 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix help text: -w N is optionalGravatar Denys Vlasenko2011-05-121-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix -p help text, improve comments and define namesGravatar Denys Vlasenko2011-05-121-11/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* md5/sha1sum: better fix for small resource leakGravatar Denys Vlasenko2011-04-161-14/+11
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* md5/sha1sum: fix small resource leakGravatar Alexey Fomenko2011-04-161-0/+3
| | | | | Signed-off-by: Alexey Fomenko <ext-alexey.fomenko@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* basename,dirname,freeramdisk,rx,raidautorun,runsv,chvt: skip "--" argumentGravatar Denys Vlasenko2011-04-111-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to debianutils/*.c e2fsprogs/*.c ↵Gravatar Pere Orga2011-04-031-0/+9
| | | | | | | editors/*.c loginutils/*.c mailutils/*.c Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: better help text for -a and -AGravatar Denys Vlasenko2011-04-031-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move help text from include/usage.src.h to coreutils/*.cGravatar Pere Orga2011-03-3166-0/+1070
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: free allocated memory if CLEANUP enabledGravatar Alexey Soloviev2011-03-221-0/+6
| | | | | Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ln: explain why we use xstrdupGravatar Denys Vlasenko2011-03-211-1/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix handling of symlinks by option -1Gravatar Denys Vlasenko2011-03-121-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chsum: fixGravatar Pascal Bellard2011-03-111-0/+1
| | | | | Signed-off-by: Pascal Bellard <pascal.bellard@ads-lu.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use user's shell instead of hardwired "/bin/sh" (android needs this)Gravatar Denys Vlasenko2011-03-081-5/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printenv: fix environ == NULL segfaultGravatar Denys Vlasenko2011-03-082-4/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tr: free allocated memory in tr if CLEANUP enabledGravatar Alexey Soloviev2011-03-061-0/+6
| | | | | Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* convert "do {...} while (1);" -> "while (1) {...}"Gravatar Denys Vlasenko2011-03-021-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: widen -s (1k blocks) column from 4 to 6Gravatar Denys Vlasenko2011-03-011-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: -g implies -lGravatar Denys Vlasenko2011-02-281-5/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix bits for -T, -w and --color; make -n imply -l; fix commentsGravatar Denys Vlasenko2011-02-281-25/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix one-bit-off which caused -H to behave as -hGravatar Denys Vlasenko2011-02-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Replace "depends on PLATFORM_LINUX" with "select PLATFORM_LINUX"Gravatar Denys Vlasenko2011-02-262-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: fix SEGV when run with no argsGravatar Denys Vlasenko2011-02-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: fix ENOSPC detection and some iffy code in \NNN handlingGravatar Denys Vlasenko2011-02-141-56/+56
| | | | | | | function old new delta echo_main 330 302 -28 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* echo: do not retry on write errorsGravatar Denys Vlasenko2011-02-071-39/+48
| | | | | | | | | | | | | function old new delta echo_main 297 336 +39 stpcpy - 22 +22 run_pipe 1561 1566 +5 pseudo_exec_argv 187 192 +5 hush_exit 75 80 +5 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0) Total: 76 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df,find_mount_point: optionally don't ignore rootfsGravatar Lauri Kasanen2011-01-311-1/+1
| | | | | Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* id: fix inverted if (!ENABLE_DESKTOP)Gravatar Denys Vlasenko2011-01-261-3/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: cosmetic fix to settings table; no code changesGravatar Denys Vlasenko2011-01-261-10/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* disable length applet. ${#var} and echo -n "$var" | wc -c are portable ↵Gravatar Denys Vlasenko2011-01-263-6/+6
| | | | | | equivalents Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move utmp.h include to libbb.hGravatar Denys Vlasenko2011-01-251-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: enable line discipline display and change code if __linix__Gravatar Denys Vlasenko2011-01-241-5/+6
| | | | | | | | | | | function old new delta stty_main 1242 1276 +34 do_display 419 431 +12 display_speed 90 81 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 46/-9) Total: 37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: make swtch and iutf8 visible/settableGravatar Denys Vlasenko2011-01-241-0/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wc: fix swapped -c and -mGravatar Denys Vlasenko2011-01-221-8/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mass removal of underscores from _BB_DIR_foo and _BB_SUID_fooGravatar Denys Vlasenko2011-01-183-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb unicode: comment out usused function and unused parameterGravatar Denys Vlasenko2011-01-111-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* date,touch: treat 2-digit years better (fit them into +-50 yrs around today)Gravatar Denys Vlasenko2011-01-021-3/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: preserve isdst value if date is in time_t (unix time) formatGravatar Alexey Soloviev2010-12-311-1/+3
| | | | | Signed-off-by: Alexey Soloviev <EXT-Alexey.Soloviev@nokia.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add missed underscoreGravatar Denys Vlasenko2010-12-311-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: add a comment about _SVID_SOURCEGravatar Denys Vlasenko2010-12-301-1/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: add examples when "%s: unknown operand" happensGravatar Denys Vlasenko2010-12-201-1/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: remove redundant constants LIST_FILENAME and LIST_SHORTGravatar James Youngman2010-12-201-47/+44
| | | | | | | LIST_FILENAME is always true and LIST_SHORT affects nothing. Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: add support for -HGravatar Denys Vlasenko2010-12-191-73/+86
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: tweak -e handling; better commentsGravatar Denys Vlasenko2010-12-191-19/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: print a space after each column. Closes bug 2941Gravatar Denys Vlasenko2010-12-191-11/+72
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: make -F not follow symlinks of the command lineGravatar Denys Vlasenko2010-12-191-4/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: make -x force columnar output; remove unused parts of TRIGGER codeGravatar Denys Vlasenko2010-12-191-43/+30
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: for some options, only last takes effect. Closes bug 2959Gravatar Denys Vlasenko2010-12-191-8/+18
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>