<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src/ls.c, branch v8.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-09-18T19:32:18Z</updated>
<entry>
<title>build: use gnulib's new termios module</title>
<updated>2010-09-18T19:32:18Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-09-18T18:24:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c12d83920f8d00cf3401d74559bb193d5760e9f8'/>
<id>urn:sha1:c12d83920f8d00cf3401d74559bb193d5760e9f8</id>
<content type='text'>
With it, we can remove the two sole tests of HAVE_TERMIOS_H.
* bootstrap.conf (gnulib_modules): Add termios.
* src/ls.c: Don't test HAVE_TERMIOS_H.
* src/stty.c: Likewise.
* m4/jm-macros.m4 (gl_CHECK_ALL_TYPES): Remove configure-time
test for termios.h.
</content>
</entry>
<entry>
<title>ls: use the POSIX date style when the locale does not specify one</title>
<updated>2010-07-01T12:12:52Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2009-09-28T16:32:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8aa15b2be2bd2ab4b76d197a279abf8b9091680a'/>
<id>urn:sha1:8aa15b2be2bd2ab4b76d197a279abf8b9091680a</id>
<content type='text'>
Previously we defaulted to "long-iso" format in locales without
specific format translations, like the en_* locales for example.
This reverts part of commit 6837183d, 08-11-2005, "ls ... acts like
--time-style='posix-long-iso' if the locale settings are messed up"
* src/ls.c (decode_switches): Only use the ISO format when specified.
* NEWS: Mention the change in behavior.
Reported by Daniel Qarras at http://bugzilla.redhat.com/525134
</content>
</entry>
<entry>
<title>doc: df, du, ls: improve --blocksize description in --help</title>
<updated>2010-06-29T05:06:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-06-28T11:48:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5b3adc0d42463cdaf5177908bb434371e01eef96'/>
<id>urn:sha1:5b3adc0d42463cdaf5177908bb434371e01eef96</id>
<content type='text'>
* src/du.c (usage): Print better --blocksize description.
Prompted by Samuel Thibault in &lt;http://bugs.debian.org/353100&gt;.
* src/df.c (usage): Likewise.
* src/ls.c (usage): Likewise.
</content>
</entry>
<entry>
<title>ls: avoid just-introduced buffer overrun</title>
<updated>2010-06-10T15:53:46Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-06-10T15:49:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ea615bf8cdc59c73288577fb135d6f2ead500ebe'/>
<id>urn:sha1:ea615bf8cdc59c73288577fb135d6f2ead500ebe</id>
<content type='text'>
* src/ls.c (gobble_file): Revert part of my preceding change,
to avoid clobbering stack.
</content>
</entry>
<entry>
<title>maint: adjust INT_BUFSIZE_BOUND usage for maintainability</title>
<updated>2010-06-08T11:16:26Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-06-07T05:15:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9e7edd8467232b5c6b714d588d0e1528cc54151b'/>
<id>urn:sha1:9e7edd8467232b5c6b714d588d0e1528cc54151b</id>
<content type='text'>
* src/tail.c (xlseek): Give INT_BUFSIZE_BOUND a variable name,
not a type name.
* src/ls.c (gobble_file, format_user_or_group_width): Likewise.
* src/head.c (elide_tail_bytes_pipe): Likewise.
(elide_tail_lines_seekable, main): Likewise.
[This change is not complete -- there are doubtless other uses
that can be updated in the same way.]
</content>
</entry>
<entry>
<title>maint: make spacing around "=" consistent, even in IF_LINT</title>
<updated>2010-05-31T09:02:21Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-05-15T17:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c0cfa0defe06fa750530f08d6e0a54521f83292d'/>
<id>urn:sha1:c0cfa0defe06fa750530f08d6e0a54521f83292d</id>
<content type='text'>
E.g.,
  -  size_t desired_width IF_LINT (= 0);
  +  size_t desired_width IF_LINT ( = 0);
Use this command:
  g grep -l IF_LINT | grep '\.[ch]$' \
    | xargs perl -pi -e 's/(IF_LINT \()= /$1 = /'
</content>
</entry>
<entry>
<title>maint: replace each "for (;;)" with "while (true)"</title>
<updated>2010-05-31T09:02:21Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-05-01T12:24:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=da7a704cd36e1d2015d14247e5139fb1999b2211'/>
<id>urn:sha1:da7a704cd36e1d2015d14247e5139fb1999b2211</id>
<content type='text'>
Run this command:
  git ls-files | grep '\.[ch]$' \
    | xargs perl -pi -e 's/for \(;;\)/while (true)/g'
...except for randint.c, which does not include stdbool.h.
In that case, use "while (1)".
* gl/lib/randint.c (randint_genmax): Use "while (1)" for infloops.
* src/cat.c (simple_cat, cat): Use "while (true)" for infloops.
* gl/lib/randread.c (readsource, readisaac): Likewise.
* src/copy.c (copy_reg): Likewise.
* src/csplit.c (record_line_starts, process_regexp): Likewise.
* src/cut.c (set_fields): Likewise.
* src/dd.c (iread, parse_symbols): Likewise.
* src/df.c (find_mount_point, main): Likewise.
* src/du.c (main): Likewise.
* src/expand.c (expand): Likewise.
* src/factor.c (factor_using_division, do_stdin): Likewise.
* src/fmt.c (get_space): Likewise.
* src/ls.c (decode_switches): Likewise.
* src/od.c (main): Likewise.
* src/pr.c (main, read_line): Likewise.
* src/shred.c (dopass, genpattern): Likewise.
* src/sort.c (initbuf, fillbuf, getmonth, keycompare): Likewise.
* src/split.c (bytes_split, lines_split): Likewise.
* src/tac.c (tac_seekable): Likewise.
* src/test.c (and, or): Likewise.
* src/tr.c (squeeze_filter, main): Likewise.
* src/tsort.c (search_item): Likewise.
* src/unexpand.c (unexpand): Likewise.
* src/uniq.c (main): Likewise.
* src/yes.c (main): Likewise.
</content>
</entry>
<entry>
<title>maint: remove now-redundant definitions provided by signal.h</title>
<updated>2010-05-03T10:26:20Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-05-03T08:50:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c0e784b92338b26b28c0194b86ff59f23f37eb44'/>
<id>urn:sha1:c0e784b92338b26b28c0194b86ff59f23f37eb44</id>
<content type='text'>
* src/dd.c (SA_NODEFER, SA_RESETHAND): Remove definitions,
now that gnulib guarantees they are defined in &lt;signal.h&gt;.
* src/ls.c (SA_RESTART): Likewise.
</content>
</entry>
<entry>
<title>maint: remove now-unnecessary #if HAVE_header_H tests.</title>
<updated>2010-04-24T15:44:58Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-04-24T15:38:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=2191fe8f8d84e39f8c4b861cde28d395639393e1'/>
<id>urn:sha1:2191fe8f8d84e39f8c4b861cde28d395639393e1</id>
<content type='text'>
* .x-sc_prohibit_always_true_header_tests: New file.
* Makefile.am (syntax_check_exceptions): Add it.
* src/cat.c: Remove #if HAVE_SYS_IOCTL_H test.
* src/copy.c: Likewise.
* src/ls.c: Likewise.
* src/stty.c: Likewise.
* src/install.c: Remove #if HAVE_SYS_WAIT_H test.
* src/kill.c: Likewise.
* src/operand2sig.c: Likewise.
* src/timeout.c: Likewise.
* src/pathchk.c: Remove #if HAVE_WCHAR_H test.
* src/stat.c: Remove #if HAVE_NETINET_IN_H test.
</content>
</entry>
<entry>
<title>doc: improve ls --help's description of --escape (-b)</title>
<updated>2010-03-18T16:41:12Z</updated>
<author>
<name>Eric Blake</name>
<email>eblake@redhat.com</email>
</author>
<published>2010-03-18T15:19:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=b44d4b6b0e2e5a422bd39be19f397142c3632b5a'/>
<id>urn:sha1:b44d4b6b0e2e5a422bd39be19f397142c3632b5a</id>
<content type='text'>
* src/ls.c (usage): Be more precise about how --escape (-b) works:
say "C-style escapes", not "octal escapes".  Reported by Jacky Fong.
</content>
</entry>
</feed>
