Re: Gnu Echo

From: Oliver Fromme <olli(at)secnetix.de>
Date: Mon, 14 Jan 2002 12:31:52 +0100 (CET)

Matthias Fechner <idefix(at)fechner.net> wrote:
> Gibt es Linux oder FreeBSD überhaupt schon 16 Jahre?

Linux nicht. FreeBSD auch nicht, aber seine Wurzeln
reichen weitaus weiter zurück in die Vergangenheit;
4.0BSD stammt z.B. aus dem Jahr 1980.

> Aber dann kannst du mir ja bestimmt diese Zeile erklären:
> # What 'echo' program to use. It needs -e and -n. Linux's builtin
> # and regular echo work fine; non-GNU platforms may need to install
> # gnu echo and put gecho here or something.

Ja, klar kann man das erklären: Typischer Linux-Pfusch.
Da hat jemand planlos unportable Dinge verwendet.

Solange Du es nur unter FreeBSD zum laufen bekommen willst,
kannst Du das eingebaut echo der /bin/sh verwenden; das
kennt -e und -n.

Der besser Weg ist natürlich, /usr/bin/printf zu verwenden.
Das hat eine andere Syntax (erfordert also ein Umschreiben
Deines Skripts), bietet aber all enotwendigen Features.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.
"All that we see or seem is just a dream within a dream" (E. A. Poe)
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Mon 14 Jan 2002 - 12:32:00 CET

search this site