OK maybe I was just looking at the latter half of
$ sh O
/tmp
created directory '/var/tmp/y'
copied 'x/1' -> '/var/tmp/y/1'
copied 'x/2' -> '/var/tmp/y/2'
copied 'x/3' -> '/var/tmp/y/3'
copied 'x/4' -> '/var/tmp/y/4'
copied 'x/5' -> '/var/tmp/y/5'
copied 'x/6' -> '/var/tmp/y/6'
copied 'x/7' ->
$ mv -v dir1/* dir2
reveals that mv works backwards,
copying in ls -r order.
Well OK, but why is that order better than the order of the arguments it
was given?
> "EB" == Eric Blake writes:
EB> Let's step back a bit. We recommend that you NEVER parse ls output, as
No problem. Any example of what can't be parsed would be fine. Even e.g.,
EB> Eric Blake, Principal Software Engineer
EB> Red Hat, Inc. +1-919-301-3266
EB>
On (info "(coreutils) cut invocation")
‘-d INPUT_DELIM_BYTE’
‘--delimiter=INPUT_DELIM_BYTE’
With ‘-f’, use the first byte of INPUT_DELIM_BYTE as the input
fields separator (default is TAB).
please mention there is no way to indicate more than one character,
thus no way to process
$ ls
< P.S., Yes indeed I had LC_COLLATE=C so maybe --debug should mention
< where in the environment it made it choices from too.
Ah, like you said
$ LC_ALL=en_CA.UTF-8 sort --debug < /dev/null
sort: using ‘en_CA.UTF-8’ sorting rules
$ LC_ALL=C sort --debug < /dev/null
sort: using simple
Your answer is absolutely pure gold for a new page linked from
‘--debug’
Highlight the portion of each line used for sorting. Also issue
warnings about questionable usage to stderr.
in the Info manual! Please don't let it go to waste sitting in the bug
tracker. Perhaps call it
$ sort -k 2n -k 3n --debug file.txt
sort: using simple byte comparison
sort: key 1 is numeric and spans multiple fields
sort: key 2 is numeric and spans multiple fields
41 011 92.3 亞太
___
41 011 97.1 大漢
___
OK but they look like they only span one
On (info "(coreutils) Access permission tests")
don't say
‘-r FILE’
True if FILE exists and read permission is granted.
‘-w FILE’
True if FILE exists and write permission is granted.
‘-x FILE’
True if FILE exists and execute permission is granted (or search
permission, if it
In (info "(coreutils) Character sets")
‘\OOO’
The 8-bit character with the value given by OOO, which is 1 to
3 octal digits. Note that ‘\400’ is interpreted as the
two-byte sequence, ‘\040’ ‘0’.
OK but do add hex too. Hmm, I probably reported this before but
In (info "(coreutils) Character sets")
‘\OOO’
The 8-bit character with the value given by OOO, which is 1 to
3 octal digits. Note that ‘\400’ is interpreted as the
two-byte sequence, ‘\040’ ‘0’.
It is very important to also add here:
and \0377 is
I got an idea.
Please parse "one", "two", "three" (lower and upper case folded too.)
1. Because it is proper English. "1 day ago" is cellphone English.
2. Because there can't be that many of them... (seventy-three,
seventy-four... well they are made up of other components...)
3. Because it
I don't think you guys should invent new eye-catching strings.
Aren't there already standard ways to show what is going on under the
hood? Let's see, sh -x uses + and ++... strace uses... maybe just use '# '
comments.
I'm fine with whatever you guys come up with, just don't
R> - Leave the output like it was initially.
else I'll just be back here five years later after forgetting the whole episode.
PB> So this is working across file systems
Yes.
>> '/home/jidanni/jidanni.org/location/grow/programs' -> '/tmp/programs'
This says to me "I, the mv command, have just moved A to B.
PB> create dir /tmp/programs
If that (create B) is what it is doing in that step, then it should not
mention the
I do
mv -v /home/jidanni/jidanni.org/location/grow/programs /tmp
and see
'/home/jidanni/jidanni.org/location/grow/programs' -> '/tmp/programs'
'/home/jidanni/jidanni.org/location/grow/programs/grow.tgz' ->
'/tmp/programs/grow.tgz'
removed
Can you please don't say "invalid date" for everything invalid.
$ date -d @1494439601675485
date: invalid date ‘@1494439601675485’
$ date -d 1494439601675485sec
date: invalid date ‘1494439601675485sec’
$ date -d 1494439601675485seconds
date: invalid date ‘1494439601675485seconds’
$ date -d
$ tr -s x -d '\\'
tr: extra operand ‘’
Try 'tr --help' for more information.
I only gave '\\'.
I can't really tell, but it seems at the beginning there still lacks the
most basic "Hi kids, here is the 'join' command. It takes one file with
contents ... and and another file with contents ... and outputs ..."
before you get into any more niceties.
In (info "(coreutils) join invocation")
‘-a FILE-NUMBER’
Print a line for each unpairable line in file FILE-NUMBER (either
‘1’ or ‘2’), in addition to the normal output.
OK but say if we can use both: -a 1 -a 2? (Answer: yes)
And if so how to tell which lines are from which file
In (info "(coreutils) join invocation")
If the input has no unpairable lines, a GNU extension is available;
(shouldn't that ";" be ":"?)
the sort order can be any order that considers two fields to be equal if
and only if the sort comparison described above considers them to be
equal. For
fold -s will break at spaces.
But why not let the user also pick an arbitrary character, other than
spaces, too?
That was Info dd. man dd says
status=LEVEL
The LEVEL of information to print to stderr; 'none' suppresses
everything but error messages, 'noxfer' suppresses the final
transfer statistics, 'progress' shows periodic transfer statis-
man dd
‘status=LEVEL’
Transfer information is normally output to stderr upon receipt of
the ‘INFO’ signal or when ‘dd’ exits. Specifying LEVEL will adjust
the amount of information printed, with the last LEVEL specified
taking precedence.
‘none’
Do not print
OK. Perhaps on
(info "(coreutils) Which files are listed")
At
‘-L’
‘--dereference’
When showing file information for a symbolic link, show information
for the file the link references rather than the link itself.
However, even with this option, ‘ls’ still prints the name of the
$ man ls
-L, --dereference
when showing file information for a symbolic link, show informa-
tion for the file the link references rather than for the link
itself
Ah ah ah... so one can only see the first (no -L) or last (-L) of a
e.g., long chain
(info "(coreutils) fold invocation")
‘-s’
‘--spaces’
Break at word boundaries: the line is broken after the last blank
before the maximum line length. If the line contains no such
blanks, the line is broken at the maximum line length as usual.
Add:
unless
The example is confusing, as it just happens to result in 1 2 3,
$ printf '%s\n' 1 2 3 4 > file1
$ printf '%s\n' 2 3 4 5 6 > file2
$ comm --total -123 file1 file2
1 2 3 total
So please use
$ printf '%s\n' 0 2 3 5 6 > file1
$ printf '%s\n' 1 2 4 6 7 8 9 >
> "BV" == Bernhard Voelker writes:
BV> This sounds like a domain of diffstat(1), doesn't it?
Even if it is,
and even if one could understand http://invisible-island.net/diffstat/ ,
it turns out the totals are already easily made within comm(1),
so it would be
> "AG" == Assaf Gordon writes:
AG> I would very much appreciate if you could help me test it as there
AG> are many edge-cases with multibyte support and wide-characters.
Sure but you need to send me a .deb or
$ which pr|xargs file
/usr/bin/pr: ELF 32-bit LSB
Please add a comm --print-summary and --quiet, so we wouldn't have to write
$ comm FILE1 FILE2|perl -nwe '
/^\t+/;
$h{ length $& || 0 }++;
END {
@L = ( "Lines in 1st ", "Lines in 2nd ", "Lines in both" );
printf "%s: %5d\n", $L[$_], $h{$_} for sort keys %h;
}
'
Lines in 1st : 601
Lines
The pr documentation (man, info) doesn't mention how it has no concept
of wide characters.
$ pr -m --sep-string='^^^' file file
2016-11-12 00:06 Page 1
http://www.w3.org/TR/html4/strict^^^"http://www.w3.org/TR/html4/strict
^^^
$ info cut
‘-f FIELD-LIST’
‘--fields=FIELD-LIST’
Select for printing only the fields listed in FIELD-LIST. Fields
are separated by a TAB character by default. Also print any line
that contains no delimiter character, unless the ‘--only-delimited’
(‘-s’) option is specified.
In (info "(coreutils) tsort invocation")
tsort <
On the man page mention if the default if no arguments
are given is
wc --bytes --words --lines
In (info "(coreutils) Concept index") there are several items that talk
about nonprinting characters.
Well on each definition be sure to have a blue word link:: to a passage
about which characters are nonprinting, lest the user think e.g.,
SPC (' ') is nonprinting.
No I am talking about when there is a slash, but no such file or directory.
> "LSS" == Leslie S Satenstein writes:
LSS> Should that be cp .profile /tmp/My_DocVments #no trailing slash
Ah ha, they just should have returned what the system calls said in the
first place, and not tinker with the output!
Them tinkering with the output only makes things worse.
$ cp .profile /tmp/My_DocVments/
cp: cannot create regular file '/tmp/My_DocVments/': Not a directory
Well can't it be more precise:
No such directory nor file.
(info "(coreutils) sleep invocation")
Historical implementations of ‘sleep’ have required that NUMBER be an
integer, and only accepted a single argument without a suffix. However,
GNU ‘sleep’ accepts arbitrary floating point numbers. *Note Floating
point::.
Add:
*GNU sleep will pass that
I can't tell if you are like the IRS: go ahead and add cents if you
insist. We'll do the truncation work for you. Or if you are saying that
you will be passing the cents along to the next layer...
I mean you even add additional arguments for him, so who knows the
motivation for all that
Man cmp:
-i, --ignore-initial=SKIP
skip first SKIP bytes of both inputs
-i, --ignore-initial=SKIP1:SKIP2
skip first SKIP1 bytes of FILE1 and first SKIP2 bytes of FILE2
I would say:
-i SKIP, --ignore-initial=SKIP
skip first SKIP bytes
>>>>> "EB" == Eric Blake <ebl...@redhat.com> writes:
EB> On 12/21/2015 05:00 PM, 積丹尼 Dan Jacobson wrote:
>> OK. Also make sure (info "(coreutils) test invocation") makes it clear that
>> one cannot use
>> test -f $1 -a $1 !
OK. Also make sure (info "(coreutils) test invocation") makes it clear that
one cannot use
test -f $1 -a $1 ! -ot $2 #and must use
test -f $1 -a ! $1 -ot $2 #.
> "PB" == Pádraig Brady writes:
PB> +Also @samp{!} is a shell special character and needs to be quoted.
Perhaps say instead:
Also @samp{!} is often a shell special character and is best used quoted.
$ man perlop # has a 50 line section called
Operator Precedence and Associativity
Might (info "(coreutils) test invocation") not fully specify test's?
Might (info "(coreutils) expr invocation") not fully specify expr's?
Shouldn't head and tail's man pages mutually SEE ALSO?
On both the head and tail man pages,
can you kindly not use "K"?
-c, --bytes=K
output the last K bytes; or use -c +K to output bytes starting
with the Kth of each file
K bytes sounds like kilobytes.
Yes if one reads carefully it doesn't.
But instead if you
All I know is I also filed
http://bugs.debian.org/796942 w shows no users even though I must...
http://bugs.debian.org/796943 wall can't write to anybody nowadays
All I know is all this stuff should be updated to still work with the
latest Unix/Linux. Otherwise after every few years one will need
(info (coreutils) who invocation) says
If given no non-option arguments, ‘who’ prints the following
information for each user currently logged on: login name, terminal
line, login time, and remote hostname or X display.
Say if this means
remote hostname or remote X display.
or
X display or
All I know is nowadays everybody (me) uses just X windows so to achieve
the who goals:
NAME
who - show who is logged on
DESCRIPTION
Print information about users who are currently logged in.
some adjustments should be made. Else it looks like there are no users
and maintenance can
Actually it would be great if one could just do
seq -f %d=0x%x 14484 1 34484
where seq could just take the standard printf arguments, and % could be
used more than once, as I don't think it could mean any second argument...
On (info (coreutils) seq invocation) perhaps mention if one needs to
use two % items, a for loop might be required,
$ for i in `seq 14484 1 34484`; do printf %d=0x%x\\n $i $i; done
14484=0x3894
24484=0x5fa4
34484=0x86b4
Please change
-I[TIMESPEC], --iso-8601[=TIMESPEC]
output date/time in ISO 8601 format. TIMESPEC='date' for date
only (the default), 'hours', 'minutes', 'seconds', or 'ns' for
date and time to the indicated precision.
to
-I[TIMESPEC],
Please make
$ man ls|grep -e -[St].*sort
-S sort by file size
-t sort by modification time, newest first
say
$ man ls|grep -e -[St].*sort
-S sort by file size, largest first
-t sort by modification time, newest first
even though yes, documented
I am mainly talking about Where will it copy/move these things anyway? I'd
like to be sure before I commit. From reading the man page I have a good
idea, but I'd like to see what the path names will look like first
without actually doing anything.
And as a bonus: I'm pretty much sure I can
Proposal:
add a new cp --dry-run
Reason: we want to know what the verbose output of e.g.,
$ cp -i -av /mnt/usb/thumb/ tmp/androidBackup/SDCard
will be without actually running the command first.
We are about to commit to a megabyte copy and we want to be sure where
all those files are exactly
ls man page says:
Using color to distinguish file types is disabled both by default and
with --color=never. With --color=auto, ls emits color codes only when
standard output is connected to a terminal. The LS_COLORS environment
variable can change the settings.
PB p.s. since v8.23, environment variables can be used to disable ls colors,
PB but that's a big hammer since it's for ls to honor terminal capabilities.
PB To disable colors for ls (but also have other side effects):
PB LS_COLORS= TERM= COLORTERM= ls -l
Yes be sure that is documented.
For
About the - stuff, maybe just output sh -x style output instead that
could be better digested if copy pasted back to the shell.
$ cp -v m n
‘m’ - ‘n’
$ set -x
$ cp m p
+ cp m p
(Hmmm... better I suppose, but sort of looks like I have some tty echoing
enabled and am not so confident the command
All I know is in xterm I click three times and all of '...' including
the quotes gets copied, which is fine with me. Just keep it all 0x27.
I'm saying please don't force me to need LC_ALL=C to make the quotes
U+0027 APOSTROPHE always.
Long ago there were no quotes.
Then somebody thought quotes looked pretty, so they added U+0027
APOSTROPHE always.
Then somebody else thought `' looks cooler than '' and made it
that way.
I am glad that these days plain ' is being used instead of goofy `'
$ LC_ALL=C cp -v /dev/null /tmp/$RANDOM 21
'/dev/null' - '/tmp/29920'
That way one can not worry about copy and pasting them with the mouse.
The problem is, if I don't use LC_ALL=C then I get the goofy ones, even
high bit too.
$ man ls
--sort=WORD
sort by WORD instead of name: none (-U), size (-S), time (-t),
version (-v), extension (-X)
Perhaps add new functionality: inode (-i)
EB == Eric Blake ebl...@redhat.com writes:
EB I guess it would be okay to have a long option with no short-option
EB counterpart; it would look a bit awkward in the help text, but we could
EB figure something out.
I thought that is why there was a separate --sort, just for those
cases... Ah..
I still wish this
$ ls -i --sort=inode
ls: invalid argument ‘inode’ for ‘--sort’
Valid arguments are:
- ‘none’
- ‘time’
- ‘size’
- ‘extension’
- ‘version’
Try 'ls --help' for more information.
worked.
All I'm saying is that if one has never used the program, one cannot
really guess what will happen with the combination of -R and -d just by
reading the documentation.
Indeed there are a few other switches that nullify one another too.
BP == Bob Proulx b...@proulx.com writes:
BP What would you
One finds that -d completely nullifies any -R flag of ls,
so maybe print a warning etc. Or warn on the man page, etc.
I was thinking maybe ls -Rd would be like ls -R, but only show
directories, not also regular files too.
I don't think any behavior should be changed. I just think some note
about that combination should be added to the docs.
It seems the stat(1) man and info pages mention often --format but don't
say what the default --format is if no --format argument is given.
It seems there is no stat(1) % operator to get just a link name. The
best one can do is %N and dig it out of there from in front of the
arrow. Or one must use -L.
find(1) has
%l Object of symbolic link (empty string if file is not a
symbolic link).
$ date -d 'today + month'
Wed Oct 15 07:04:59 CST 2014
$ date -d 'today - month'
Wed Oct 15 07:05:05 CST 2014
$ date -d '8pm -0500'
date: invalid date ‘8pm -0500’ --why can't this combo work?
$ date -d '20:00 -0500'
二 8月 26 09:00:00 CST 2014
$ date -d 'sun 8pm'
日 8月 31 20:00:00 CST 2014
$ date -d '8pm'
一 8月 25 20:00:00 CST 2014
OK however on the sleep info page it says
Historical implementations of `sleep' have required that NUMBER be
an integer, and only accepted a single argument without a suffix.
However, GNU `sleep' accepts arbitrary floating point numbers. *Note
Floating point::.
However for at least me, I
PE == Paul Eggert egg...@cs.ucla.edu writes:
PE This stuff is documented in the coreutils manual. It's not clear that
PE this particular detail is so important that it needs to be in the
PE sleep --help output aka man page.
No seeming mention in
coreutils:
Installed: 8.21-1.2
500
Indeed it says
However, GNU `sleep' accepts arbitrary floating point numbers. *Note
Floating point::.
Alas infinity doesn't sound like an arbitrary floating point number.
So maybe it should say arbitrary floating point numbers and infinity,
else some people will give up instead of following
Perhaps add an infinity option:
$ sleep infinity
or mention a workaround in the documentation.
$ mv /etc/motd /etc/lilo.conf
mv: overwrite `/etc/lilo.conf', overriding mode 0644? y
mv: cannot move `/etc/motd' to `/etc/lilo.conf': Permission denied
I would skip the first message, as isn't there no point in asking, as
it is bound to fail. No? Yes, one could use mv -f.
cp doesn't have the
Perhaps add a --debug option, so users don't write mail like the below
:-)
Kindly add an example to the sort info pages of how to sort
zip utils
xdm x11
cron admin
dpkg admin
lilo admin
menu admin
on the second field. No, -k 2,2 2,2b or whatever doesn't work. Better
yet, why don't you also add
comm documents don't mention that columns are made via tabs, and it
one is not happy with that what one can do about that (nothing, even
if one's data has tabs in it and one wants to use a different separator.)
___
Bug-coreutils mailing list
P But the only way to find out is to try. ACLs allow file systems to
P change their minds, so you don't know for sure whether the lunch was
P cancelled until you show up and try to eat. The same principle
P applies here.
Must be some ask permission before taking the candy vs. take the candy
and
The seq documentation doesn't mention it, but FORMAT can contain more
than just % escapes. Perhaps add this to the examples.
$ seq -f XXX.XX%03g 0 125 999
XXX.XX000
XXX.XX125 ...
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
We see
`--numeric-sort'
Sort numerically: the number begins each line; specifically, it
consists of optional blanks, an optional `-' sign, and zero or more
digits possibly separated by thousands separators, optionally
followed by a decimal-point character and zero or more
What is it about these commands that if they know they are going to
fail, they still ask anyway. Same for emacs' dired-do-copy etc.
$ whoami
jidanni
$ cp file /etc/passwd
cp: overwrite `/etc/passwd', overriding mode 0644? y
cp: cannot create regular file `/etc/passwd': Permission denied
$ mv
Comments on the stty info page:
`stty' prints or changes terminal characteristics, such as baud rate.
Synopses:
stty [OPTION] [SETTING]...
(Might as well say [LINE SETTING]...
to match how you talk below, or change the below.)
stty [OPTION]
If given no line
Double width characters don't line up with pr or pr|expand.
LC_ALL doesn't change things. Perhaps it is counting Unicode as bytes,
perhaps it is thinking every character is one column wide.
$ set 001 台中-谷關 東勢-興中山莊-台中
$ pr -mT $@|head -n 6
*{{b|仁友東站}} *{{b|台中火車站}}
What ed(1) lacks is the readline facility!
Please forward this to the ed team, whoever they may be.
The man page is not forthcoming of a better address.
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
touch Info page says:
If changing both the access and modification times to the current
time, `touch' can change the timestamps for files that the user running
it does not own but has write permission for. Otherwise, the user must
own the files.
Please reword. Otherwise=not both
On both the dd man and Info pages, we see
count=BLOCKS
copy only BLOCKS input blocks
OK, but one must use ones brain, heavens forbid, to figure out that
e.g., these
bs=BYTES
force ibs=BYTES and obs=BYTES
ibs=BYTES
read BYTES bytes at
OD Here is a patch that may change this.
Looks good.
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils
Please forward this to whoever.
A funny thing happens on Sundays if you are Chinese.
$ LC_CTYPE=zh_TW.utf8 date -d sunday
日 12月 10 00:00:00 CST 2006
The problem occurs because the word 日 means Sunday and also day
in Chinese.
Therefore
日 12月 10 00:00:00 CST 2006
looks like
Day 12Month 10 00:00:00
Did anyone ever mention that a billion
$ bla_bla|gzip|wc 21|head -n 1
wc: standard input:1: Invalid or incomplete multibyte or wide character
$ bla_bla|gzip|wc 21|wc
3083073 22634
(OK, not a billion, but just the same as far as one's terminal buffer is
concerned) is more than enough to
The GNU man pages have a big flaw, e.g.,
DESCRIPTION
This manual page documents the GNU version of df. df displays the
But only when the reader gets to the bottom of the page does he discover:
SEE ALSO
The full documentation for df is maintained as a Texinfo manual.
Gentlemen, consider a file with oh, three points of disorder.
Well,
$ sort -c timez1
sort: timez1:418: disorder: 1162082133
is great at finding the first one, but to find the other two one has
to use ones brains. No fair.
So there should be some --dont-poop-out-at-the-first-disorder option,
to
Package: coreutils
X-debbugs-cc: bug-coreutils@gnu.org
Version: 5.97-5
Severity: normal
File: /bin/df
# mount /cdrom
# df /cdrom
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/scd045684 45684 0 100% /cdrom
# df /cdrom
Filesystem
Regarding Info page 8.3 `join': Join lines on a common field
However, as a GNU extension, if the input has no unpairable lines the
sort order can be any order that considers two fields to be equal if and
only if the sort comparison described above considers them to be equal.
For
Info 7.2 `uniq': Uniquify files:
By default, `uniq' prints its input lines, except that it discards
all but the first of adjacent repeated lines, so that no output lines
are repeated. Optionally, it can instead discard lines that are not
repeated, or all repeated lines.
If
`install' is similar to `cp', but allows you to control the
attributes of destination files. It is typically used ... to copy
programs into their destination directories.
Then it is ripe for adding new functionality:
--hardlink make hard links instead of copying
(And maybe even
Fold splits UTF-8 chars into their bytes and probably doesn't know
about their display width either.
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils
Perhaps also warn about obsolete thing on the man page too.
$ info -w cor tail|xargs zgrep -ic obsolete
18
$ man tail|grep -ic obsolete
0
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils
The ptx documentation contains no examples.
Show
$ cat infile
bla bla bla
$ cat infile|ptx
Else how can one get started?
You added examples to the tsort docs but not ptx.
___
Bug-coreutils mailing list
Bug-coreutils@gnu.org
101 - 200 of 310 matches
Mail list logo