GURU NEEDED : break a command into several lines and comment each line
Stefan Monnier
monnier at iro.umontreal.ca
Thu Jan 13 22:12:30 EST 2011
> #!/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
More information about the Python-list
mailing list