public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* What does echo -c do (as found in dynamic-debug-howto.txt)
@ 2013-12-26 17:38 Alexander Holler
  2013-12-27 12:25 ` Rob Landley
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Holler @ 2013-12-26 17:38 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-doc, Jason Baron

Hello,

I've just read Documentation/dynamic-debug-howto.txt (again) and I 
wonder what the parameter -c for echo is for (found at lines 94 ff).

Neither echo from coreutils nor the buildin from bash do know the 
parameter -c.

The paragraph which made me curious starts with

-----
Command Language Reference
==========================

At the lexical level, a command comprises a sequence of words separated
by spaces or tabs.  So these are all equivalent:

nullarbor:~ # echo -c 'file svcsock.c line 1603 +p' >
                                 <debugfs>/dynamic_debug/control
nullarbor:~ # echo -c '  file   svcsock.c     line  1603 +p  ' >
                                 <debugfs>/dynamic_debug/control
nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
                                 <debugfs>/dynamic_debug/control
-----

Is that -c a parameter for a buildin echo of one of the various shells, 
a typo (looks unlikely) or do I miss something else which make me look a 
noob?

Regards,

Alexander Holler

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: What does echo -c do (as found in dynamic-debug-howto.txt)
  2013-12-26 17:38 What does echo -c do (as found in dynamic-debug-howto.txt) Alexander Holler
@ 2013-12-27 12:25 ` Rob Landley
  2014-01-01 11:54   ` [PATCH] Documentation: correct typo in dynamic-debug-howto.txt (echo -c -> echo -n) Alexander Holler
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Landley @ 2013-12-27 12:25 UTC (permalink / raw)
  To: Alexander Holler, linux-kernel; +Cc: linux-doc, Jason Baron

On 12/26/13 11:38, Alexander Holler wrote:
> Hello,
>
> I've just read Documentation/dynamic-debug-howto.txt (again) and I
> wonder what the parameter -c for echo is for (found at lines 94 ff).
>
> Neither echo from coreutils nor the buildin from bash do know the
> parameter -c.

Huh. No idea.

Annotate points at Jason Baron, whom you've cc'd...

Rob

> Is that -c a parameter for a buildin echo of one of the various shells,
> a typo (looks unlikely) or do I miss something else which make me look a
> noob?

I've implemented echo for toybox, it has -n and -e support. "man echo" 
shows -neE (and -E is one of those pointless gnuisms that doesn't 
actualy do anything). man bash shows the echo builtin also has -neE.

No -c anywhere to be found, it's not just you...

Rob

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] Documentation: correct typo in dynamic-debug-howto.txt (echo -c -> echo -n)
  2013-12-27 12:25 ` Rob Landley
@ 2014-01-01 11:54   ` Alexander Holler
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Holler @ 2014-01-01 11:54 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-doc, Rob Landley, Alexander Holler

As nobody could answer what the parameter -c for echo should be, I assume
it's a typo. Normally I don't care much about those, but this one might make
people search for the meaning of the parameter -c.

Signed-off-by: Alexander Holler <holler@ahsoftware.de>
---
 Documentation/dynamic-debug-howto.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/dynamic-debug-howto.txt b/Documentation/dynamic-debug-howto.txt
index 1bbdcfc..abb7dfe 100644
--- a/Documentation/dynamic-debug-howto.txt
+++ b/Documentation/dynamic-debug-howto.txt
@@ -91,9 +91,9 @@ Command Language Reference
 At the lexical level, a command comprises a sequence of words separated
 by spaces or tabs.  So these are all equivalent:
 
-nullarbor:~ # echo -c 'file svcsock.c line 1603 +p' >
+nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
 				<debugfs>/dynamic_debug/control
-nullarbor:~ # echo -c '  file   svcsock.c     line  1603 +p  ' >
+nullarbor:~ # echo -n '  file   svcsock.c     line  1603 +p  ' >
 				<debugfs>/dynamic_debug/control
 nullarbor:~ # echo -n 'file svcsock.c line 1603 +p' >
 				<debugfs>/dynamic_debug/control
-- 
1.8.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-01 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-26 17:38 What does echo -c do (as found in dynamic-debug-howto.txt) Alexander Holler
2013-12-27 12:25 ` Rob Landley
2014-01-01 11:54   ` [PATCH] Documentation: correct typo in dynamic-debug-howto.txt (echo -c -> echo -n) Alexander Holler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox