🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.comp.os.unix.linux.misc
Article #258

Re: Probleme mit while bei Shell Skript

#258
From: Stefan Heimers
Date: Sat, 26 Oct 2002 08:36
28 lines
1778 bytes
Peter Smith wrote:

> Hallo,
> ich habe ein Problem bei der Shell Programmierung mit einer While
> Schleife. Bei diese Skript
> ---snip
> #/bin/bash
> while true; do
>   echo "Ich lebe"
> done
> ---snap
> 
> bekomme ich diesen
> ---
> line 5: syntax error: unexpected end of file
> ---

Bei mir funktioniert es genau so wie Du es geschrieben hast.

Du hast es nicht per Zufall mit einem DOS oder Windows Editor geschrieben, 
von wegen Zeilenumbr�chen?

Gruss,
 Stefan

-- 
Stefan Heimers
http://www.heimers.ch/
Technical Details
Message-ID: <apdk25$d9k$1@news.magnet.ch>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!solnet.ch!solnet.ch!news.magnet.ch!not-for-mail
References: <apdja8$s0n$00$1@news.t-online.com>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: f55df,c3b306622a8a4749
X-Google-Attributes: gidf55df,public
X-Google-Thread: f4b73,c3b306622a8a4749
X-Google-Attributes: gidf4b73,public
X-Google-ArrivalTime: 2002-10-26 01:36:39 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!solnet.ch!solnet.ch!news.magnet.ch!not-for-mail
From: Stefan Heimers <stefan.usenet@heimers.ch>
Newsgroups: de.comp.os.unix.linux.misc,ch.comp.os.linux
Subject: Re: Probleme mit while bei Shell Skript
Followup-To: de.comp.os.unix.linux.misc
Date: Sat, 26 Oct 2002 10:36:22 +0200
Organization: Magnet.Com AG - Switzerland
Lines: 28
Message-ID: <apdk25$d9k$1@news.magnet.ch>
References: <apdja8$s0n$00$1@news.t-online.com>
Reply-To: stefan.usenet@heimers.ch
NNTP-Posting-Host: 213.189.154.5
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8Bit
X-Trace: news.magnet.ch 1035621253 13620 213.189.154.5 (26 Oct 2002 08:34:13 GMT)
X-Complaints-To: usenet@news.magnet.ch
NNTP-Posting-Date: Sat, 26 Oct 2002 08:34:13 +0000 (UTC)
User-Agent: KNode/0.7.1