help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GURU NEEDED : break a command into several lines and comment each li


From: Stefan Monnier
Subject: Re: GURU NEEDED : break a command into several lines and comment each line
Date: Thu, 13 Jan 2011 22:12:30 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> #!/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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]