[linux-l] Ueberlange Zeilen in Bash-Skripten

Christoph Biedl cbiedl at gmx.de
Di Okt 3 00:36:59 CEST 2006


Olaf Radicke wrote...

> Wie geht man mit überlangen Zeilen in Bash-Skripten um?
> Kann man die mit '\\' oder so was umbrechen?

Nur ein Backslash. Suche nach diesem Zeichen in der manpage führt Dich
auch sofort auf den richtigen Absatz:

|    A non-quoted backslash (\) is the escape character.  It preserves  the
|    literal value of the next character that follows, with the exception of
+    <newline>.  If a \<newline> pair appears,  and  the  backslash is  not
+    itself  quoted,  the \<newline> is treated as a line continuation (that
+    is, it is removed from the input stream and effectively ignored).

Sprich: Mit einem Leerzeichen zwischen Backslash und Zeilenumbruch ist
Spaß vorprogrammiert.

    Christoph
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname   : signature.asc
Dateityp    : application/pgp-signature
Dateigröße  : 189 bytes
Beschreibung: Digital signature
URL         : <https://mlists.in-berlin.de/pipermail/linux-l-mlists.in-berlin.de/attachments/20061003/e93b0c41/attachment.sig>


Mehr Informationen über die Mailingliste linux-l