Article View: comp.unix.shell
Article #4087Re: GURU NEEDED : break a command into several lines and comment each line
From: David W. Hodgins
Date: Thu, 13 Jan 2011 22:08
Date: Thu, 13 Jan 2011 22:08
26 lines
2190 bytes
2190 bytes
On Thu, 13 Jan 2011 16:18:31 -0500, bolega <gnuist006@gmail.com> wrote:
> how to break a command with several switches into more than one line
> AND to be able to put some comment on each line.
> command \ # comment1
> -sw1 \ # comment2
Not what you want to hear, but that will not work. With the above,
the backslash is being used to escape the following space, rather
then a newline, as is required to continue the line. Even if it
were to work that way, would the next line be considered a continuation
of the command, or of the comment?
Your stuck with
command \
-sw1
# comment1
# comment2
Regards, Dave Hodgins
--
Change nomail.afraid.org to ody.ca to reply by email.
(nomail.afraid.org has been set up specifically for
use in usenet. Feel free to use it yourself.)
Technical Details
Message-ID:
<op.vo9o4weaa3w0dxdave@hodgins.homeip.net>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mailReferences:
<bfd24856-94a9-4b46-b0b7-8c142f5b87f5@z5g2000yqb.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1012a6,20180ee9ccee5478 X-Google-NewGroupId: yes X-Google-Thread: 103b8b,20180ee9ccee5478 X-Google-NewGroupId: yes X-Google-Thread: 10dd18,20180ee9ccee5478 X-Google-NewGroupId: yes X-Google-Attributes: gid9d2148d7bf,gid39ae015015,gidc8df1ae2c2,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: "David W. Hodgins" <dwhodgins@nomail.afraid.org> Newsgroups: comp.unix.shell,gnu.emacs.help,comp.lang.python Subject: Re: GURU NEEDED : break a command into several lines and comment each line Date: Thu, 13 Jan 2011 17:08:46 -0500 Organization: A noiseless patient Spider Lines: 26 Message-ID: <op.vo9o4weaa3w0dxdave@hodgins.homeip.net> References: <bfd24856-94a9-4b46-b0b7-8c142f5b87f5@z5g2000yqb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="AvsmxFBL6MjLQZT7vWCjMg"; logging-data="17814"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18UIYPWD6vWyoplGLZhsW3DWI6cnWLQTD4=" User-Agent: Opera Mail/11.01 (Linux) Cancel-Lock: sha1:mJd2RkTQKR4uvO+/+9GPJ6WDh3s=