From: Alexander Holler <holler@ahsoftware.de>
To: linux-kernel@vger.kernel.org
Cc: linux-doc@vger.kernel.org, Jason Baron <jbaron@redhat.com>
Subject: What does echo -c do (as found in dynamic-debug-howto.txt)
Date: Thu, 26 Dec 2013 18:38:18 +0100 [thread overview]
Message-ID: <52BC698A.9030805@ahsoftware.de> (raw)
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
next reply other threads:[~2013-12-26 17:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-26 17:38 Alexander Holler [this message]
2013-12-27 12:25 ` What does echo -c do (as found in dynamic-debug-howto.txt) Rob Landley
2014-01-01 11:54 ` [PATCH] Documentation: correct typo in dynamic-debug-howto.txt (echo -c -> echo -n) Alexander Holler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52BC698A.9030805@ahsoftware.de \
--to=holler@ahsoftware.de \
--cc=jbaron@redhat.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.