Re: GNU Coding Standards, automake, and the recent xz-utils backdoor

2024-04-02 Thread Eric Blake
ation can at least let us automate that each of the tarballs has the same contents, although it won't make it any more obvious whether those contents match what was in git (which was how the xz backdoor got past so many people in the first place). -- Eric Blake, Principal Software Engineer R

Re: turn on --enable-gcc-warnings when in git tree

2012-09-06 Thread Eric Blake
ings=$enableval], - [gl_gcc_warnings=no] + [if test -d "$srcdir"/.git; then + gl_gcc_warnings=yes + else + gl_gcc_warnings=no + fi] ) # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found]) -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Should cp -n return 0, when DEST exists?

2012-09-06 Thread Eric Blake
for a human to approve your email address as a non-spammer for all future posts (generally less than a day). -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: turn on --enable-gcc-warnings when in git tree

2012-09-06 Thread Eric Blake
ks right. Thanks! Thanks for the review. I tested a VPATH build, and it worked, so I'm pushing with this commit message: commit 1c0ad05170bd095296a6151f8a912942f487e70c Author: Eric Blake Date: Thu Sep 6 08:20:17 2012 -0600 build: default to --enable-gcc-warnings for git tree

Re: [PATCH] build: do not require help2man at build-from-tarball time

2012-09-10 Thread Eric Blake
POSIX (along with 'test a == a', among others). > > Anyway, maybe it could be emulated with "find -newer" or something > similar... Yep, 'find $dir -newer ...' is the only POSIX way to compare timestamps, for now. -- Eric Blake ebl...@redhat.com

Re: bug#12130: Fwd: bug#12130: "sudo make install" applies umask to new directories

2012-09-17 Thread Eric Blake
vement, and I'm closing this as not a bug in coreutils. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Problem the TEE command

2012-10-10 Thread Eric Blake
ining to the person that pre-built the binary you are using than here, because we are unable to do anything about a bad port on this upstream list. If you aren't already using cygwin, might I suggest that as a reasonable port of GNU tools to Windows (see cygwin.com). -- Eric Blake ebl...@re

Re: Coreutils for Windows info

2012-10-15 Thread Eric Blake
ntly at 8.15 from February of this year, and I am hoping to bump that up to even newer coreutils when I can get enough free time to spend on it. http://cygwin.com -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: Ope

Re: more compile warnings with new factor

2012-10-23 Thread Eric Blake
it in all of these projects. > In order, those are: > > grep > diffutils > idutils > cppi > parted > > The logs are identical, as are the patches, modulo offsets. > >>From 85eaa86258bbdc17894355a1720dc9efda9044ed Mon Sep 17 00:00:00 2001 >

Re: Zero-length arguments?

2012-11-05 Thread Eric Blake
mented. > At least it should be consistent among coreutils, eh? Perhaps. Patches welcome, if you think one or the other style of error message is worth improving. But I'm not personally bothered by it. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: FYI: updated to latest gnulib --- almost, but not quite

2012-11-09 Thread Eric Blake
make check gl_public_submodule_commit= That trick ought to be documented in HACKING. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: touch: is 00hh timestamp invalid?

2012-11-14 Thread Eric Blake
/coreutils/faq/#The-date-command-is-not-working-right_002e > > On Wed, Nov 14, 2012 at 11:51 AM, Rafael Xavier wrote: > >> A gnulib posixtime bug? Nope. And please don't top-post - it makes it awkward to reply. -- Eric Blake ebl...@redhat.com+1-919-301-3

Re: modechange.c (Feature added) - Binary mode support.

2012-12-04 Thread Eric Blake
#x27;invalid input' 2>&1 ;; *) eval "printf %d \$((2#$1))" ;; esac } b2o() { case $1 in *[!01]*) echo 'invalid input' 2>&1 ;; *) eval "printf %o \$((2#$1))" ;; esac } chmod $(b2o 10111) t That is, teaching chmod how to parse binary is just

Re: readlink(1) of more than one file?

2012-12-12 Thread Eric Blake
I'll probably add > something along the lines of the following > unless there are objections. If you add support for handling more than one file at a time, then you also should add support for separating the output with NUL instead of newline to make the output unambiguous. -- Eric Bla

Re: numfmt (=print 'human' sizes) updates

2012-12-14 Thread Eric Blake
n name it '---devdebug' (yes, with three dashes), so that it doesn't interfere with any use of '--d' as an unambiguous prefix of a documented long option starting with d. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: enhancement suggestions for "sort" and text editor

2012-12-14 Thread Eric Blake
-k1.5,1.9 which says to break fields at newline characters; since newline also breaks records, that means each entire line will all be field 1. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: bug#13243: [PATCH] enhancement: modify md5sum to allow piping

2012-12-20 Thread Eric Blake
ds, not to mention copyright assignment paperwork? As such, I'm going to close the bug report so that we don't spin our wheels re-implementing something that already works. But you should still feel welcome to contribute, and even add further comments to this thread as appropriate (we can

Re: numfmt (=print 'human' sizes) updates

2012-12-21 Thread Eric Blake
e appended. That's a little hard to read. Would --from=iec-i be any easier, where we are separating the IEC acronym from the output of 'i'? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] maint: fix alphabetical order in .gitignore

2013-01-02 Thread Eric Blake
> Note LC_ALL is set to C in maint.mk already. > I'll push a patch in your name to gnulib soon. Please don't, at least not without more discussion. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: bug#13389: echo command redhat linux OS

2013-01-08 Thread Eric Blake
[adding the list] On 01/08/2013 11:01 AM, Bernhard Voelker wrote: > Hi Eric, > > thanks, it seems like we understood Mohanad's question > the same way ;-) > > On 01/08/2013 06:50 PM, Eric Blake wrote: >> join <(join <(cat -n one) <(cat -n two)) <(cat

bug#13397: `date -I` is not documented

2013-01-09 Thread Eric Blake
C], --iso-8601[=TIMESPEC] output date/time in ISO 8601 format. $ date --version | head -n1 date (GNU coreutils) 8.17 and looking back in git history, it looks like documentation was re-added at commit 2f1384b in Oct 2011, once we gave date the ability to parse the 'T' separator in ISO dat

Re: coreutils-8.20.patch002

2013-02-11 Thread Eric Blake
are unchanged; so omitting the call into the kernel would unintentionally miss out on those side effects. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: coreutils-8.20.patch001

2013-02-11 Thread Eric Blake
" chmodbug; This behavior is documented. We _intentionally_ leave the sticky bit alone, unless you request a double-leading 0 as declaration that you are aware of the consequences of clearing the sticky bit. Our behavior is compliant with POSIX, and we will not be changing it. chmod 00755 chmodb

Re: coreutils-8.20.patch003

2013-02-11 Thread Eric Blake
pparent change in ownership. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

bug#13737: Add -h option to 'users'

2013-02-18 Thread Eric Blake
short option name. I am against adding -h as a short option without a lot more justification than just a single user, since we have had so few requests for a short option -h over the years. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

bug#13737: Add -h option to 'users'

2013-02-18 Thread Eric Blake
you want to do lightly. > > I don't get why GNU development and usability features should depend on > non-GNU implementation? GNU prefers long options. We support short options insofar as standards documents and compatibility dictate, but don't let short options drive development. --

Re: New feature request for "ln" utility

2013-02-21 Thread Eric Blake
On 02/21/2013 02:19 AM, Majid Tajamolian wrote: > Hi there, > I suggest to add a "-r" switch to "ln" utility for creating symbolic links > with relative path instead of absolute one. Are you aware that this has already been done, as of coreutils 8.16? -- Eric Blake

Re: That '[' file in /usr/bin

2013-02-23 Thread Eric Blake
(along with a host of other utilties all crammed into one super-binary). But coreutils will not be adopting that approach. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: ls and root directory indicator

2013-02-25 Thread Eric Blake
;//' for '/' or '///' for '//' is confusing. However, since the proposed patch does not special case '//', it is not an appropriate patch in its current form. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: ls and root directory indicator

2013-02-25 Thread Eric Blake
it might need a bit more hand-holding to be portable to mingw, where drive letters are also treated as roots, and where backslash can be used in place of slash. But I'm okay if we leave the case of mingw to someone that develops on that platform; again, isolating things into an is_root() helper function already gives them a nice place to tackle if they want to enhance the function to work on drive letters. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Octal file permissions in ls

2013-03-18 Thread Eric Blake
dition to prove that it works right, and with a coreutils.texi and NEWS addition mentioning the improvement. All told, by the time you add all these, your contribution would be non-trivial, and would require FSF copyright assignment. Is this still something you are interested in pursuing? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Octal file permissions in ls

2013-03-18 Thread Eric Blake
On 03/18/2013 01:04 PM, Bob Proulx wrote: > Eric Blake wrote: >> Sakse Dalum wrote: >>> Anywho, I've attached a diff to this mail, which may or may not be >>> applicable to the most recent version (I just did an apt-get >>> source in Trisquel 6.0 to get th

Re: Absolute symlink created relatively to the current directory

2013-04-04 Thread Eric Blake
ive. Yes, adding --absolute might make it guaranteed to handle both styles of $target; but it's still something the shell can already do: case $target in /*) ln -s "$target" name ;; *) ln -s "$PWD/$target" name ;; esac -- Eric Blake eblake redhat com+1-919-301-3266

Re: Move Command Feature

2013-04-05 Thread Eric Blake
dding bloat), and then for that feature to finally propagate into the distros that you commonly use; it would be easier to figure out the appropriate rsync --remove-source-files invocation that does what you want. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Sort option for Posix-locale simple comparisons

2013-04-08 Thread Eric Blake
he source has changed since when your patch was written, since it contains no context on which lines were intended to be changed. Also, you attached the entire body of sort.c, which doesn't really help us. We prefer patches in unified form (diff -u), and can also use patches in context form (diff -c), and with no repeat of sort.c. Read HACKING for more details on the preferred way to supply a patch. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: How to compile the git mirror of coreutils?

2013-04-12 Thread Eric Blake
1 Did you run ./bootstrap first? If not, that's your problem. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Request for enhancement: links to 'true' and 'false'

2013-04-20 Thread Eric Blake
of utilities or internal commands, > you get an error if you try to execute 0 or 1. Consequently, I anticipate > that the addition would be backward compatible. Yes, it would be backward compatible, but it is not standardized, so no one would use them, so it's not worth making coreutil

Re: Request for enhancement: links to 'true' and 'false'

2013-04-22 Thread Eric Blake
cases because it is not standardized. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: a smarter rm

2013-04-23 Thread Eric Blake
re asking for on this step. > > Thoughts? Can a small improvement which shouldn't affect most scripts win out > over tradition? > > Please CC me, I'm not on the list. That's list policy :) > > Diggory > > > -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: decoder how to install

2013-05-13 Thread Eric Blake
probably have better luck asking on a Fedora-specific list. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Building a subset of coreutils

2013-05-13 Thread Eric Blake
ible; if you have an up-to-date GNU/Linux system, there's already quite a few source files of gnulib that aren't even built because you have no bugs to be worked around in the first place. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: mv -n with error code om failure

2013-05-21 Thread Eric Blake
e your script to do 'test -e "$dest"' and fail if the destination already exists, rather than even trying the mv; and certainly something you can use now rather than waiting a few years for a patch to be accepted into coreutils and finally percolated into the machines you typica

Re: suggestion for 'ls' coreutil, comma'd filesizes in -l output

2013-06-04 Thread Eric Blake
l elements to be listed, then you can use a printf-style ' modifier in the element that lists file size, as well as any other tweak you want to make in the line layout. In fact, stat already has that: $ stat -c "%'s" COPYING HACKING 35,147 24,005 -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

bug#14525: ls -k produced no size, ls -lk lists in bytes? What's up w/k?

2013-06-04 Thread Eric Blake
27;, which is the default unless the `POSIXLY_CORRECT' >> environment variable is set. which, while still true for du and df, is now false for ls. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: suggestion for 'ls' coreutil, comma'd filesizes in -l output

2013-06-04 Thread Eric Blake
the list, and supplying the missing NEWS entry). I also found this recently, and thought it was a-propos to this situation: https://rwmj.wordpress.com/2010/11/08/want-help-dont-email-me-directly/ -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: suggestion for 'ls' coreutil, comma'd filesizes in -l output

2013-06-04 Thread Eric Blake
nf) can force the locale to be sane so that they aren't dealing with unexpected input (not that 'ls -l' output is very reliable to parse in the first place, but it would be even less reliable with thousands separators). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt

Re: [PATCH] rm: Add number of arguments to interactive prompt

2013-07-19 Thread Eric Blake
r be reached because n_files != 1, does not mean that there will never be a translation to another language where select_plural will still want to to choose an alternate form (for example, I seem to recall the gettext manual talking about languages where 100 is treated differently than 111). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] maint: make some shell and perl scripts executable in 'tests/'

2013-07-22 Thread Eric Blake
make this check runnable by people that are not using GNU findutils? Then again, in this particular case, I think we want -111 (exact match) rather than /111 (inclusive match), which delays the worry about whether we need GNU extensions in the first place. -- Eric Blake eblake redhat com

Re: process the output of $() with files with spaces

2013-08-19 Thread Eric Blake
ut awkward quoting in the first place? cat *.pdf > > How do I get around this problem? Your problem has nothing to do with coreutils, and everything to do with shell quoting. You may want to take this question to a forum dedicated to proper shell usage. -- Eric Blake eblake redhat com

Re: [PATCH] maint: update help2man to 1.43.3

2013-09-09 Thread Eric Blake
memories of a distant past); you may need to run 'git config diff.renames true' to set that up. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

filesystem recognition [was: [libvirt] [PATCH] util: recognize SMB filesystems as shared]

2013-09-26 Thread Eric Blake
[actually adding coreutils] On 09/26/2013 08:28 AM, Eric Blake wrote: > On 09/26/2013 03:43 AM, Laine Stump wrote: >> This should resolve: >> >> https://bugzilla.redhat.com/show_bug.cgi?id=1012085 >> >> libvirt previously recognized NFS, GFS2, OCFS2, and AFS fil

Re: RFE: Modification to the Timezone Modifier

2013-09-30 Thread Eric Blake
c where such things make sense (ie. fixing gnulib does not necessarily require fixing glibc first). But first, I'd echo the advice that glibc gave you: open a bug with the Austin Group (http://austingroupbugs.net/login_select_proj_page.php?ref=bug_report_page.php) and point them to the existing GNU

Re: question about behavior of sort -n -t,

2013-10-08 Thread Eric Blake
nt vendors have tended to have different rules, even for locales that are otherwise named the same. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: question about behavior of sort -n -t,

2013-10-08 Thread Eric Blake
Rather, the lack of -k determines how far -n will parse, regardless of locale; it's just that some locales let -n parse farther than others. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: question about behavior of sort -n -t,

2013-10-09 Thread Eric Blake
es how far -n will parse, regardless >> of locale; it's just that some locales let -n parse farther than >> others. > > > Don't you actually mean here that "the lack of -k determines how far -n will > parse, depending on locale." Or even: "the lack of -k has a locale-independent effect of letting -n parse as far as possible; then -n has a locale-dependent effect of how far that actually is". -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: How do you generate test.1 man page in 8.21?

2013-10-11 Thread Eric Blake
7;[ --help' does. This is named lbracket during intermediate builds due to the awkwardness of representing '[' in make rules, so build test.1 from 'lbracket --help' instead of 'test --help'. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualiz

Re: Full Julian date in date command formatting options?

2013-10-11 Thread Eric Blake
ng a %letter, we have lately tended to add pre-canned formats: 'date --rfc-3339=seconds' being an example that generates a given format without you having to remember which % options build it up. For scripting, generating a common canned format via a command-line option rather than burni

Re: Full Julian date in date command formatting options?

2013-10-11 Thread Eric Blake
On 10/11/2013 01:18 PM, Eric Blake wrote: > On 10/11/2013 11:56 AM, Reed Underwood wrote: >> I wonder if it would be alright to implement a >> full Julian date in the date command's format options >> (maybe a %J?). It could be really useful in shell >> scripts, etc.

Re: Full Julian date in date command formatting options?

2013-10-11 Thread Eric Blake
ly, the '%j' form gives you the day of the year, which is likely > more commonly used (though I'm not sure in what context). At this point, I'm guessing that there's probably not enough demand to warrant adding astronimical Julian Date to the general-purpose date co

Re: Full Julian date in date command formatting options?

2013-10-11 Thread Eric Blake
a conversion to Julian date output, we should also add a -d shorthand for conversion from Julian on input. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Date Computations cot executing properly!!

2013-10-30 Thread Eric Blake
f midnight (so that even with the fuzz of daylight savings causing 23- or 25-hour days, you still land in the desired destination day). https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e -- Eric Blake eblake redhat com+1-919-301

Re: Date Computations cot executing properly!!

2013-10-30 Thread Eric Blake
, read the FAQ, where this issue (and others) are more thoroughly discussed. >> https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#The-date-command-is-not-working-right_002e -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http:/

Re: [PATCH] md5sum, sha*sum: only escape file names containing newlines

2013-11-01 Thread Eric Blake
ke it could be a step in the wrong direction to me. I've been arguing that we need to escape file names containing \r, for the sake of people that transmit files with \r\n line endings compared to files that contain a literal trailing \r. -- Eric Blake eblake redhat com+1-919-30

Re: [PATCH] md5sum, sha*sum: only escape file names containing newlines

2013-11-01 Thread Eric Blake
On 11/01/2013 12:02 PM, Pádraig Brady wrote: > On 11/01/2013 05:39 PM, Eric Blake wrote: >> On 11/01/2013 10:29 AM, Pádraig Brady wrote: >>> This should be fully backwards and forwards compatible with previous >>> escaping, since we'll never have a file name at the

Re: [PATCH] md5sum, sha*sum: only escape file names containing newlines

2013-11-01 Thread Eric Blake
oud, it may be appropriate to have such a mode option be tri-state (old, new, or warn; with default being warn), where the warning mode gives the new output but ALSO flags to the user that their output may not be parseable by older summing utilities. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] join: add support \t as a field delimiter

2013-11-18 Thread Eric Blake
$tab" ... or even use this bash extension (the next version of POSIX plans to standardize it, but it's not universal yet): join -t $'\t' -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Enhancement Requests: Add a seed value option to sort and shuf

2013-11-20 Thread Eric Blake
h/to/file where /path/to/file contains the seed. Similarly for shuf --random-source=/path/to/file. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Suggestion for mkdir

2013-11-20 Thread Eric Blake
nt behavior is mandated by POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/mkdir.html -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] use libcrypto routines in gnulib

2013-12-03 Thread Eric Blake
ve --with-crypto=[nettle|openssl|none] for selecting between multiple implementations. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: bootstrapping coreutils: autopoint from gettext 0.18.3.1 fails

2013-12-03 Thread Eric Blake
nstead of - for stdin, since we cannot guarantee that everyone will have a working autom4te in their path that doesn't eat stdin. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] use libcrypto routines in gnulib

2013-12-03 Thread Eric Blake
o={basic|nettle|openssl|gcrypt}, then distro packagers can choose WHICH library they want to drag in, rather than forcing a binary decision of using or avoiding a single library. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] use libcrypto routines in gnulib

2013-12-03 Thread Eric Blake
On 12/03/2013 03:44 PM, Eric Blake wrote: > > Libvirt would prefer a solution that uses nettle, at least when used in > RHEL. Correction: libvirt would prefer a solution that uses gnutls, and could live with a solution that uses openssl. Certification-wise, indirect use of nettle via

Re: RFE: Modification to the Timezone Modifier

2013-12-09 Thread Eric Blake
omit leading 0 by default in %:::z and using 0 padding in %0:::z still has merit, if someone wants to write a patch. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] tests: fix false failure due to xargs usage

2013-12-09 Thread Eric Blake
919799/utilities/xargs.html>: >> >> The standard input shall be a text file. > > A "text file" doesn't have to have a new line AFAIK, > so the above should be fine. A text file must either end in newline or be empty; your approach does neither. Why not just

Re: [PATCH] tests: avoid problematic $(< file) shell construct

2013-12-16 Thread Eric Blake
ell > +# on FreeBSD. > +sc_prohibit_redirect_only_command_substitution: > + @prohibit='\$$\(<' \ Shouldn't you also prevent $(> ...)? -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: `du` check for directory loop avoidance

2013-12-18 Thread Eric Blake
cause POSIX requires a non-zero exit code any time an error message is output, including when a directory is skipped due to a directory loop. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/du.html -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization libr

Re: `du` check for directory loop avoidance

2013-12-18 Thread Eric Blake
> We will likely be opening another RFE within Red Hat Bugzilla on this. And Red Hat will probably point you right back here, as they are reluctant to diverge from upstream with no good reason. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvir

Re: add --color option to md5sum and shaXsum

2013-12-24 Thread Eric Blake
rge images). > > This patch can be applied on the version 8.22 of the coreutils. We prefer patches that are against the latest coreutils.git. Please read the HACKING document for more details: http://git.savannah.gnu.org/cgit/coreutils.git/tree/HACKING -- Eric Blake eblake redhat com

Re: Does sort -2,3n work properly?

2014-01-18 Thread Eric Blake
corner cases where numeric sorting DOES span fields: $ printf '10210304\n20120403\n30102305\n' | sort -t0 -k2,3n --debug sort: using ‘en_US.UTF-8’ sorting rules sort: key 1 is numeric and spans multiple fields 30102305 20120403 10210304

Re: Suppress filenames in wc output

2014-02-11 Thread Eric Blake
c -l < file` That is, POSIX requires that when reading from stdin rather than from a filename, then there will be no filename in the output of wc. As this is already a standard way to suppress the output, I see no need to add a -q. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt v

Re: [heads-up] patch re. savedir() in src/copy.c needed when updating gnulib

2014-02-26 Thread Eric Blake
that proved it helped. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: New feature for 'wc': Filter lines by character count

2014-04-03 Thread Eric Blake
40' < log.txt | wc -l Or even shorter: grep -vc '^.\{140\}$' log.txt -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: wish: chmod -R to handle directories and files differently

2014-04-15 Thread Eric Blake
but not the directories. > > => chmod -Ru my/photos/ > > (alternative is some ugliness with "find -type d") Ugly but standardized and universally existing is better than pretty but unimplemented on the majority of systems. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: [PATCH] numfmt: improve processing throughput by 800%

2014-05-02 Thread Eric Blake
eutils has long required C99. Any compiler that can already manage coreutils should already support vararg macros. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: RFC: avoid chroot() call if not changing root dir

2014-05-16 Thread Eric Blake
allows chroot to use used as a light weight tool s/to use used/to be used/ -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: true,false: --version,--help exit code

2014-06-03 Thread Eric Blake
be better to be consistent here > and have the exit code dependent on the name rather than the environment. > > I also see that the test script for `false` was only > checking the shell builtin :/ > > The attached fixes up both issues in your name. > OK to push? My first reac

Re: true,false: --version,--help exit code

2014-06-03 Thread Eric Blake
the program being executed (which means true is doing it right, and 'false --version' is the odd man out, opposite to what the most recent patch proposal does). I'd wait for Paul and/or Jim to weigh in on this, since they made the decisions behind the current unpatched behavior. -

Re: true,false: --version,--help exit code

2014-06-03 Thread Eric Blake
add minor complication to true.1 and false.1 > man page generation, but it would not be hard to work around. Another possibility - make it possible to detect write failure, by using a non-default exit value: true --help=> 0 true --help > /dev/full=> 2 false --help

Re: true,false: --version,--help exit code

2014-06-03 Thread Eric Blake
l always-1 status for successfully reporting false. > > I can fix up the test issues I noticed separately. Yes, at this point, separating the test snafu of only covering the builtin from any change in exit status behavior is wise. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt

Re: tac feature suggestion

2014-06-03 Thread Eric Blake
list in the loop, so that the conversation is publicly archived and so that others may chime in mid-thread (as I did here). -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: RFC: [PATCH] build: Option for building all tools in a single binary

2014-06-09 Thread Eric Blake
d, and can optimize to use unlocked stdio functions for speed because there is no other thread competing for locks. But if combined into a single binary, then that one binary will be multi-threaded, and you may lose the performance benefit of specifically compiling other apps to be single-threaded.

Re: RFC: Change pwd to assume -L by default

2014-07-02 Thread Eric Blake
gt;>> POSIX should probably say something about that. > > Yes. Because it really should be standardizing on existing behavior > rather than specifying an incompatible change. I'll go ahead and file that as a defect, and report back with what they say about it. -- Eri

Re: [PATCH] maint: avoid clang -Wint-to-pointer-cast warning

2014-07-14 Thread Eric Blake
than passing an address to a pointer to integer). But it is always odd looking, so if it can be avoided by a clearer code construction, I'm all for that. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

cygwin results [was: [platform-testers] new snapshot available: coreutils-8.22.151-37b36]

2014-07-14 Thread Eric Blake
t; providing pre-built binaries for cygwin whether or not the final 8.23 >> release has fixed any of these problems. Although a quick fix that >> disabled stdbuf on platforms where it can't be built might be nice, it >> certainly doesn't qualify as a recent regression. > > This is a good point to sync up cygwin, since this will probably > be the last of the 8.x series. > > thanks! > Pádraig. > > -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: cygwin results [was: [platform-testers] new snapshot available: coreutils-8.22.151-37b36]

2014-07-14 Thread Eric Blake
On 07/14/2014 10:04 PM, Eric Blake wrote: > Now I'm seeing this with gcc 4.8.3: > > CC lib/openat-die.o > lib/openat-die.c: In function 'openat_save_fail': > lib/openat-die.c:34:1: error: function might be candidate for attribute > 'noretur

Re: [platform-testers] new snapshot available: coreutils-8.22.151-37b36

2014-07-16 Thread Eric Blake
in src/*.c? Most of them are already 'isblank (to_uchar (expr))', which is safe even in the presence of a unibyte locale where byte 255 is considered space. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: Obscure test failures on DilOS (OpenSolaris-like) with 8.22.157-1b243

2014-07-18 Thread Eric Blake
s and expect local to work. The workaround is simple - don't use local variables, and just be sure to namespace your variables so that your functions don't inadvertently collide with the rest of your script. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization l

Re: Obscure test failures on DilOS (OpenSolaris-like) with 8.22.157-1b243

2014-07-18 Thread Eric Blake
On 07/18/2014 06:18 PM, Pádraig Brady wrote: > It's probably not worth handling such an old shell I think. It's not limited to old shells - POSIX says that use of 'local' is undefined. I think it IS worth working around. -- Eric Blake eblake redhat com

Re: [PATCH 2/2] doc: explicitly mention 'inf' values in seq(1) documentation

2014-07-29 Thread Eric Blake
ncient hardware that lacks such a number (in which case it maps to HUGE_VAL instead). Any libc that can't parse "inf" is non-POSIX-compliant, and we could argue that gnulib's strtod should be used to work around that broken implementation. Therefore, I think the documen

Re: [PATCH 2/2] doc: explicitly mention 'inf' values in seq(1) documentation

2014-07-29 Thread Eric Blake
ations @section Signal specifications -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

  1   2   3   4   5   6   7   >