Skip to contentSkip to conversation

Documentation/input/input.txt.gz has a bug

DISCUSSION [email protected] 4 participants 9 messages Nov 15, 2011 – Nov 20, 2011

lore
Share & tools
lore
#0 lore raw

/usr/share/doc/linux-doc-3.0.0/Documentation/input/input.txt.gz Has an error at "(c, 13, 32)" or needs an explanation added:

Doing a cat /dev/input/mouse0 (c, 13, 32) will verify that a mouse
is also emulated, characters should appear if you move it.

Bye.

#1 lore raw
Quoted 5 lines · [email protected] writes:

/usr/share/doc/linux-doc-3.0.0/Documentation/input/input.txt.gz Has an error at "(c, 13, 32)" or needs an explanation added:

Doing a cat /dev/input/mouse0 (c, 13, 32) will verify that a mouse
is also emulated, characters should appear if you move it.

I think that it's correct:

    $ ls -l /dev/input/mouse0
    crw------- 1 root root 13, 32 Nov 12 09:14 /dev/input/mouse0
Signature · 2 lines
Ben Pfaff 
http://benpfaff.org
#2 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"BP" == Ben Pfaff <[email protected]> writes:

BP> $ ls -l /dev/input/mouse0
BP> crw------- 1 root root 13, 32 Nov 12 09:14 /dev/input/mouse0
Yes, but say there what your are trying to say, or else all we know is

$ cat /dev/input/mouse0 (c, 13, 32)
bash: syntax error near unexpected token `('
#3 lore raw

Hi all!

Quoted 6 lines · On Die, 2011-11-15 at 14:21 +0800, [email protected] wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"BP" == Ben Pfaff <[email protected]> writes:

BP> $ ls -l /dev/input/mouse0
BP> crw------- 1 root root 13, 32 Nov 12 09:14 /dev/input/mouse0
Yes, but say there what your are trying to say, or else all we know is

$ cat /dev/input/mouse0 (c, 13, 32)
bash: syntax error near unexpected token `('

You plain simply copied too much (and the parentheses also make absolutely no sense for the "cat" command). /dev/input/mouse0 is a _c_haracter device with major number _13_ and minor number _32_.

Bernd

Signature · 2 lines
Bernd Petrovitsch                  Email : [email protected]
                     LUGA : http://www.luga.at
#4 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"BP" == Bernd Petrovitsch <[email protected]> writes:

BP> You plain simply copied too much (and the parentheses also make BP> absolutely no sense for the "cat" command).
BP> /dev/input/mouse0 is a _c_haracter device with major number _13_ and BP> minor number _32_.
Yes, but the document needs to make that fact clear, as there will be all levels of readers reading it. Else it will look like part of the command to some.

#5 lore raw
In reply to [email protected]
Quoted 5 lines · On 11/14/2011 05:24 PM, [email protected] wrote:

/usr/share/doc/linux-doc-3.0.0/Documentation/input/input.txt.gz Has an error at "(c, 13, 32)" or needs an explanation added:

Doing a cat /dev/input/mouse0 (c, 13, 32) will verify that a mouse
is also emulated, characters should appear if you move it.

Doing a "cat /dev/input/mouse0" (char device 13,32) will verify that
a mouse is also emulated; characters should appear if you move it.

or

Doing a

$ cat /dev/input/mouse
(which is char device 13,32) will verify that a mouse is also
emulated; characters should appear if you move it.

Do you want to submit a patch?

Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
#6 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"RD" == Randy Dunlap <[email protected]> writes:

RD> Doing a
RD> $ cat /dev/input/mouse
RD> (which is char device 13,32) will verify that a mouse is also RD> emulated; characters should appear if you move it. Looks great. Thanks!
RD> Do you want to submit a patch?
Please do it for me, as it's only a 1.5 per lifetime thing. Thanks.

#7 lore raw
In reply to Randy Dunlap

On Die, 2011-11-15 at 11:35 -0800, Randy Dunlap wrote:
[...]

Quoted 4 lines

Doing a "cat /dev/input/mouse0" (char device 13,32) will verify that
a mouse is also emulated; characters should appear if you move it.
Doing a

$ cat /dev/input/mouse

Hmm, how is this written in the other documentation?

Both are fine with me. FWIW in emails and the like, I use backquotes usually as in
---- snip ----
Doing a cat /dev/input/mouse0 (char device 13,32) will verify that a mouse is also emulated; characters should appear if you move it. ---- snip ----

Bernd

Signature · 2 lines
Bernd Petrovitsch                  Email : [email protected]
                     LUGA : http://www.luga.at
#8 lore raw
Quoted 8 lines · Bernd Petrovitsch

On Die, 2011-11-15 at 11:35 -0800, Randy Dunlap wrote:
[...]

Quoted 4 lines

Doing a "cat /dev/input/mouse0" (char device 13,32) will verify that
a mouse is also emulated; characters should appear if you move it.
Doing a

$ cat /dev/input/mouse

Hmm, how is this written in the other documentation?

There is very little consistency among all of the Documentation/ files (hopefully there is some consistency within any one file).

I found many of:

a. using a prompt, e.g.:

	$ cat /dev/input/mouse

b. using backquotes:
cat /dev/input/mouse

c. using double quotes:
"cat /dev/input/mouse"

d. using a colon:
type (or enter): cat /dev/input/mouse

Quoted 6 lines

Both are fine with me. FWIW in emails and the like, I use backquotes usually as in
---- snip ----
Doing a cat /dev/input/mouse0 (char device 13,32) will verify that a mouse is also emulated; characters should appear if you move it. ---- snip ----

Yes, that's OK also.

Signature · 2 lines
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***