Article View: comp.unix.shell
Article #4086Re: GURU NEEDED : break a command into several lines and comment each line
From: Berthold Höllmann
Date: Thu, 13 Jan 2011 21:45
Date: Thu, 13 Jan 2011 21:45
59 lines
2539 bytes
2539 bytes
--=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 How about=20 =2D---------- #!/bin/bash -xv COMMAND=3Dcommand # comment1 COMMAND=3D$COMMAND -sw1 \ # comment2 COMMAND=3D$COMMAND -sw2 \ # comment3 COMMAND=3D$COMMAND arguments $COMMAND =2D-------- ? Regards=20 Berthold=20 > One ought to be able to comment every single switch if desired for > whatever reason. > > Bolega > > =2D-=20 A: Weil es die Lesbarkeit des Textes verschlechtert. F: Warum ist TOFU so schlimm? A: TOFU F: Was ist das gr=C3=B6=C3=9Fte =C3=84rgernis im Usenet? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEARECAAYFAk0vcpYACgkQcXJNT6Y4fveF1gCgmw41BZEHgyVzx6gn6HFsS+6W zBEAn0OyciTF+qNI5tn/ATiOGROw2dW5 =ki9L -----END PGP SIGNATURE----- --=-=-=--
Technical Details
Message-ID:
<87wrm8scjz.fsf@pchoel.xn--hllmanns-n4a.de>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!not-for-mailReferences:
<bfd24856-94a9-4b46-b0b7-8c142f5b87f5@z5g2000yqb.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1012a6,20180ee9ccee5478 X-Google-NewGroupId: yes X-Google-Thread: 103b8b,20180ee9ccee5478 X-Google-NewGroupId: yes X-Google-Thread: 10dd18,20180ee9ccee5478 X-Google-NewGroupId: yes X-Google-Attributes: gid9d2148d7bf,gid39ae015015,gidc8df1ae2c2,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!fu-berlin.de!uni-berlin.de!not-for-mail From: bhoel@despammed.com (Berthold Höllmann) Newsgroups: comp.unix.shell,gnu.emacs.help,comp.lang.python Subject: Re: GURU NEEDED : break a command into several lines and comment each line Followup-To: comp.unix.shell Date: Thu, 13 Jan 2011 22:45:20 +0100 Lines: 59 Message-ID: <87wrm8scjz.fsf@pchoel.xn--hllmanns-n4a.de> References: <bfd24856-94a9-4b46-b0b7-8c142f5b87f5@z5g2000yqb.googlegroups.com> Reply-To: <berthold@xn--hllmanns-n4a.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: news.uni-berlin.de DMmWFz7tC9oDAqcR7j4S2gXZyBmIn6aZxqDgYCjMm/x+sTjpM= X-Orig-Path: bhoel.news.arcor.de!not-for-mail Cancel-Lock: sha1:bsUN8bs/q+8Gc1sV9AmcreY+tEQ= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)