[coreutils] Re: coreutils | join.c | handling of spaces in output

2010-09-08 Thread Andreas Schwab
s.2.s You get the same on openSUSE 11.3 with LC_ALL=C. Looks like the i18n patch in the openSUSE version is the culprit. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[coreutils] [PATCH] Fix fadvice hint in fold

2010-10-16 Thread Andreas Schwab
) return false; } - fadvise (stdin, FADVISE_SEQUENTIAL); + fadvise (istream, FADVISE_SEQUENTIAL); while ((c = getc (istream)) != EOF) { -- 1.7.3.1 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "An

Re: [coreutils] [PATCH] Fix fadvice hint in fold

2010-10-16 Thread Andreas Schwab
Jim Meyering writes: > I'm curious: how did you find the bug? Just by code inspection. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[coreutils] Re: [PATCH 2/2] stat: print timestamps to full resolution

2010-10-20 Thread Andreas Schwab
fiers rather than burning new letters just for the nanosecond > portions. And now that POSIX 2008 requires nanonsecond resolution > in stat(2), you could argue that we should always be displaying it. There are a lot of scripts that assume whole integer output from %[WXYZ]. It would have been b

Re: [coreutils] Re: [PATCH 2/2] stat: print timestamps to full resolution

2010-10-21 Thread Andreas Schwab
Jim Meyering writes: > Can you point to any others? Tramp, mkinitrd on openSUSE 11.3. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [coreutils] Re: [PATCH 2/2] stat: print timestamps to full resolution

2010-10-21 Thread Andreas Schwab
Jim Meyering writes: > And besides, with coreutils-8.6 already released, reverting the > change is no longer an option. Why? I'm pretty sure more breakage will pop up over time. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D

Re: [coreutils] Re: [PATCH 2/2] stat: print timestamps to full resolution

2010-10-21 Thread Andreas Schwab
Eric Blake writes: > On 10/21/2010 03:22 AM, Andreas Schwab wrote: >> >> >> Jim Meyering writes: >> >>> And besides, with coreutils-8.6 already released, reverting the >>> change is no longer an option. >> >> Why? I'm pretty sure

[coreutils] Re: Builds of coreutils-8.6.19-1369f

2010-11-06 Thread Andreas Schwab
sac > } > f > EOF > $ /bin/sh -c '. init.cfg' > [Exit 97] Perhaps local isn't really the builtin local? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [coreutils] Re: Builds of coreutils-8.6.19-1369f

2010-11-06 Thread Andreas Schwab
(but this is not enough for coreutils, since some > failing tests don't yet use init.sh) Why not just add the quotes? This isn't formally an assignment, so the behaviour of the shell is reasonable after all. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 5

Re: [coreutils] Re: Builds of coreutils-8.6.19-1369f

2010-11-06 Thread Andreas Schwab
d be unsafe with word splitting). Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[coreutils] Re: new branch in gnulib: coreutils-8.9

2011-01-04 Thread Andreas Schwab
Eric Blake writes: > I'm trying to come up with some > git submodule foreach 'command $sha1' > formula that will allow you to make the same check without having to > resort to wget or even to hardcoding the URL of each upstream repository. Like git ls-remote? A

[coreutils] Re: basename/dirname can't handle stdin?

2011-01-14 Thread Andreas Schwab
o a FreeBSD machine, and have been testing these cases as I > type these mails). It is only required when you have exactly 2 > arguments but don't want the second to be treated as a suffix. The manpages are online under <http://www.freebsd.org/cgi/man.cgi>. Andreas. -- Andrea

[coreutils] Re: [PATCH] uniq: don't continue field processing after end of line

2011-01-17 Thread Andreas Schwab
Jim Meyering writes: > +timeout 1 uniq -f 100 in || fail=1 "The Cray-3 is so fast it can execute an infinite loop in under 2 seconds!" Andreas. :-) -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5

[coreutils] Re: [PATCH 1/2] tests: avoid rare FP failure in new du test

2011-01-25 Thread Andreas Schwab
> +# Prohibit suspension, which could otherwise cause a timeout-induced FP > failure. > +trap '' STOP TSTP SIGSTOP cannot be caught, blocked, or ignored. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 827

Re: cut feature request: treat multiple consecutive delimiters as one

2011-04-26 Thread Andreas Schwab
> > You can do that with awk: $ awk '{print $1,$2}' $ awk '{print $2}' Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: libstdbuf installed in /usr/lib on biarch system

2011-10-13 Thread Andreas Schwab
Pádraig Brady writes: > The dir was changed to appease newer automake > > http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=e23f1795 The change is backwards. A library has no place in a PROGRAMS primary. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fi

Re: libstdbuf installed in /usr/lib on biarch system

2011-10-14 Thread Andreas Schwab
#x27;t be placed there in the first place, but rather based on libdir. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: What does 'safely' mean in man mktemp?

2011-12-18 Thread Andreas Schwab
Bob Proulx writes: > If you like vi keys then use 'pinfo' (Przemek's Info Viewer) which > uses vi keys by default. Give pinfo a try. Or info --vi-keys. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8

Re: What does 'safely' mean in man mktemp?

2011-12-19 Thread Andreas Schwab
Peng Yu writes: > Typing 'man mktemp' is faster than "info coreutils 'mktemp > invocation'". "info mktemp" is much faster than "man mktemp". Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 94

Re: scp sparse dd file

2012-04-02 Thread Andreas Schwab
Simon Hintermann writes: > Now is there any way to be able to copy a sparse dd file that uses only > 10MB out of 120GB without transferring the whole 120GB over to another > server (keeping the sparse capability, of course...)? rsync --sparse. Andreas. -- Andreas Schwab, sch

Re: amendments to backtick-removing series

2012-04-04 Thread Andreas Schwab
=$(eval echo "\\\$REV_$opt1") > - rev2=$(eval echo "\\\$REV_$opt2") > + rev1=$(eval echo "\$REV_$opt1") > + rev2=$(eval echo "\$REV_$opt2") eval rev1=\$REV_$opt1 eval rev2=\$REV_$opt2 Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: amendments to backtick-removing series

2012-04-04 Thread Andreas Schwab
;test $opt = cread && continue > - rev=$(eval echo "\$REV_$opt") > + eval \$REV_$opt That's not what I wrote. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: [PATCH] doc: use @xref{... only at start of a sentence

2012-04-16 Thread Andreas Schwab
er appropriate in > this > -document. For the full list, see @xref{Compatibility in ptx}. > +document. @xref{Compatibility in ptx} for the full list. @xref must be followed by a period or comma. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B

Re: Another rfe: "cp" this time

2012-04-27 Thread Andreas Schwab
Bruce Korb writes: > I can either add this to cp, or roll my own toy. What say you? Use rsync --partial --append. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: using tee with mkfifo

2012-04-27 Thread Andreas Schwab
rld | tee a.suffix > b.suffix & Here the shell waits for a reader for b.suffix (tee hasn't even been started yet). > cat a.suffix b.suffix Here cat is waiting for a writer for a.suffix (b.suffix hasn't even been considered yet). Andreas. -- Andreas Schwab, sch...@linux-m

Re: ls files that were modified on a certain date

2012-07-18 Thread Andreas Schwab
Eric Blake writes: > find -mtime $(( ( $(date +%s) - $(date -d 'Jan 1') ) / 24 / 60 / 60 )) +%s Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for so

Re: [PATCH 16/17] tests: more resilient about tainted absolute srcdir path

2012-09-04 Thread Andreas Schwab
srcdir"/src/stty.c | tr '\n' ' ') > ... > > Thanks, but this c-set is unnecessary, since configure itself verifies > the sanity of $srcdir and $abs_top_srcdir: Except that $abs_top_srcdir may contain spaces. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: Hide rootfs filesystem in df

2012-09-24 Thread Andreas Schwab
in initrd. During normal system run, after the real root mount has be moved to /, the recursive rootfs entry no longer exists in mountinfo (since it is hidden). Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 &qu

Re: Extend cat to have headers like head/tail

2013-05-13 Thread Andreas Schwab
*somefiles*' but it's not optimal and I might miss lines >> > if a file is bigger than expected. >> >> Try head -n-0. > > I like it! This is non-standard. tail -n+1 is portable. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

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

2013-12-09 Thread Andreas Schwab
t || fail=1 Still wrong. <http://pubs.opengroup.org/onlinepubs/9699919799/utilities/xargs.html>: The standard input shall be a text file. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

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

2013-12-09 Thread Andreas Schwab
Pádraig Brady writes: > A "text file" doesn't have to have a new line AFAIK, It does. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

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

2013-12-10 Thread Andreas Schwab
3.206 Line A sequence of zero or more non- characters plus a terminating character. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: New option for md5sum

2014-04-19 Thread Andreas Schwab
204e9800998ecf8427e None of them handle quoted file names: $ md5sum a\\b | awk '{print$1}' \d41d8cd98f00b204e9800998ecf8427e Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: du: POSIX mandating a single space instead of tab?

2015-04-28 Thread Andreas Schwab
t;%d %s\n", , > > Instead, GNU du uses "%d\t%s\n", i.e., a tab character as delimiter, > even if POSIXLY_CORRECT is set. > > Do I read POSIX right? No, the space stands for any (positive) amount of white space. http://pubs.opengroup.org/onlinepubs/9699919799/base

[PATCH] nproc: fix indentation of usage output

2015-05-10 Thread Andreas Schwab
"), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); -- 2.4.0 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: RFE: uniq --sequential

2015-06-11 Thread Andreas Schwab
Daiki Ueno writes: > + fputs (_("\ > + -S, --sequential[=INTERVAL] treat lines as numbers, and remove adjacent\n\ > + numbers as duplicate lines\n\ Is the output of "seq 1.0 0.1 1.5" sequential? Andreas. -- Andreas Schwab, sch..

Re: Leap Second 2015-06-30 23:59:60 UTC

2015-06-30 Thread Andreas Schwab
Bob Proulx writes: > Hmm... I don't know. Should this work? No. POSIX doesn't have leap seconds. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: What is the best way to touch a file and set its time of the last time of a bunch of other files?

2015-08-07 Thread Andreas Schwab
Peng Yu writes: > Hi, `touch -r` allows one to set the time of a file same as a > reference file. What if one wants to set the time to be the last time > of multiple files? Is there an easy way to do so? $ touch -d @$(stat -c %s $files | sort -n | tail -n1) $file Andreas. -- Andre

Re: What is the best way to touch a file and set its time of the last time of a bunch of other files?

2015-08-07 Thread Andreas Schwab
Andreas Schwab writes: > Peng Yu > > writes: > >> Hi, `touch -r` allows one to set the time of a file same as a >> reference file. What if one wants to set the time to be the last time >> of multiple files? Is there an easy way to do so? > > $ touch -d @

Re: rm should exit immediately if the user cannot write to the parent directory

2015-09-03 Thread Andreas Schwab
ition reliably. There is also the problem of TOCTOU. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

[PATCH] nproc: fix indentation of usage output

2017-07-09 Thread Andreas Schwab
"), stdout); fputs (HELP_OPTION_DESCRIPTION, stdout); -- 2.13.2 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."

Re: feature request: self join from stdin

2019-10-20 Thread Andreas Schwab
in and paste simultanously read both files, whereas cat and tac read one file after the other. Then tee blocks on stdout because nobody drains the pipe buffer. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for som

Re: fstatat + AT_NO_AUTOMOUNT

2022-03-09 Thread Andreas Schwab
AUTOMOUNT. I installed the first patch to cause it be consistent in > using AT_NO_AUTOMOUNT, which is also consistent with what glibc does ??? In glibc, stat is the same as fstatat(,,,0). -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E7

[PATCH] tests: avoid failure when cp fails for /proc/cpuinfo

2023-04-24 Thread Andreas Schwab
+ cat $proc_large > 2 || fail=1 # adjust varying parts -- 2.40.0 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH] build: avoid use of C11 specific %t format size spec

2023-08-01 Thread Andreas Schwab
%t is C99 -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: sort dynamic linking overhead

2024-02-26 Thread Andreas Schwab
BAL); That only works if libopenssl-devel is installed. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: sort dynamic linking overhead

2024-02-26 Thread Andreas Schwab
matched literally. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."