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: Pascal J. Bourguignon
Subject: Re: GURU NEEDED : break a command into several lines and comment each line
Date: Thu, 13 Jan 2011 23:47:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

bolega <gnuist006@gmail.com> writes:

> 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.

Rewrite your script in clisp:

#!/usr/bin/clisp 

(ext:shell (format nil "~{~A ~}"
              "command" ; comment1
              "-sw1"    ; comment2
              "-sw2"    ; comment3
              arguments))


-- 
__Pascal Bourguignon__                     http://www.informatimago.com/
A bad day in () is better than a good day in {}.


reply via email to

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