Skeeve: shellscript // Dir.-listing mit Zeilenumbruch in Mail übernehmen

Beitrag lesen

Moin!

hier sind die Umbrüche "verloren gegangen".
Offenbar geht es schief sobald man den Kram in eine Variable steckt.
Aber wieso, weshalb, warum?

man sh oder ma bash:
Bash performs the expansion by executing command and replacing the com-
mand  substitution  with  the  standard output of the command, with any
trailing newlines deleted.  Embedded newlines are not deleted, but they
may  be  removed during word splitting.

-- Skeeve