From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: GURU NEEDED : break a command into several lines and comment each line Date: Thu, 13 Jan 2011 22:12:30 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1294976446 3205 80.91.229.12 (14 Jan 2011 03:40:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 14 Jan 2011 03:40:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 14 04:40:42 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PdaWn-0007yS-F7 for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Jan 2011 04:40:41 +0100 Original-Received: from localhost ([127.0.0.1]:35778 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdaWm-0006TD-RX for geh-help-gnu-emacs@m.gmane.org; Thu, 13 Jan 2011 22:40:40 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!feeder.erje.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: comp.unix.shell,gnu.emacs.help,comp.lang.python Original-Lines: 19 Injection-Info: mx02.eternal-september.org; posting-host="8jSoPKcnI4RsJz0v4H4pBg"; logging-data="18262"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3FYI+p3gAygWkcnCrE4y6" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:8ZFdoGwRoUWHqFJ44CBkWstG5u8= sha1:AtA4pStufTYVNW15NnLChyzB0JU= Original-Xref: usenet.stanford.edu comp.unix.shell:249293 gnu.emacs.help:184255 comp.lang.python:651754 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:78425 Archived-At: > #!/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. Thanks for the riddle. Here's a solution: command $(: # comment1 ) -sw1 $(: # comment2 ) -sw2 $(: # comment3 ) arguments -- Stefan