unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bolega <gnuist006@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: gnuist006@gmail.com
Subject: GURU NEEDED : break a command into several lines and comment each line
Date: Thu, 13 Jan 2011 13:18:31 -0800 (PST)	[thread overview]
Message-ID: <bfd24856-94a9-4b46-b0b7-8c142f5b87f5__10220.2676389881$1294954844$gmane$org@z5g2000yqb.googlegroups.com> (raw)

Basically, I have spent a few hours experimenting and searching on the
comp.unix.shell

how to break a command with several switches into more than one line
AND to be able to put some comment on each line.

#!/bin/bash -xv

command       \ # comment1
         -sw1 \ # comment2
         -sw2 \ # comment3
         arguments

One ought to be able to comment every single switch if desired for
whatever reason.

Bolega




             reply	other threads:[~2011-01-13 21:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-13 21:18 bolega [this message]
2011-01-14  8:07 ` GURU NEEDED : break a command into several lines and comment each line Oleksandr Gavenko
     [not found] <bfd24856-94a9-4b46-b0b7-8c142f5b87f5@z5g2000yqb.googlegroups.com>
2011-01-13 21:45 ` Berthold Höllmann
2011-01-13 22:08 ` David W. Hodgins
2011-01-13 22:46 ` suvayu ali
2011-01-13 22:47 ` Pascal J. Bourguignon
2011-01-14  3:12 ` Stefan Monnier
     [not found] ` <jwvaaj4b2sb.fsf-monnier+gnu.emacs.help@gnu.org>
2011-01-14  6:28   ` bolega
2011-01-14 17:41     ` Pascal J. Bourguignon

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='bfd24856-94a9-4b46-b0b7-8c142f5b87f5__10220.2676389881$1294954844$gmane$org@z5g2000yqb.googlegroups.com' \
    --to=gnuist006@gmail.com \
    --cc=help-gnu-emacs@gnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).