From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25507 invoked from network); 28 May 2006 23:24:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.2 (2006-05-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.2 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 May 2006 23:24:51 -0000 Received: (qmail 9163 invoked from network); 28 May 2006 23:24:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 May 2006 23:24:45 -0000 Received: (qmail 2693 invoked by alias); 28 May 2006 23:24:37 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10336 Received: (qmail 2681 invoked from network); 28 May 2006 23:24:36 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 May 2006 23:24:36 -0000 Received: (qmail 8035 invoked from network); 28 May 2006 23:24:36 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 28 May 2006 23:24:34 -0000 Received: from torch.brasslantern.com ([71.116.105.50]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J0000DT710WTN73@vms046.mailsrvcs.net> for zsh-users@sunsite.dk; Sun, 28 May 2006 18:24:33 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id k4SNOVko032112 for ; Sun, 28 May 2006 16:24:32 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id k4SNOVc3032111 for zsh-users@sunsite.dk; Sun, 28 May 2006 16:24:31 -0700 Date: Sun, 28 May 2006 16:24:31 -0700 From: Bart Schaefer Subject: Re: Vanishing files ? In-reply-to: <20060528.203857.71096165.Meino.Cramer@gmx.de> To: zsh-users@sunsite.dk Message-id: <060528162431.ZM32110@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20060528.172405.74744323.Meino.Cramer@gmx.de> <060528113200.ZM31855@torch.brasslantern.com> <20060528.203857.71096165.Meino.Cramer@gmx.de> Comments: In reply to Meino Christian Cramer "Re: Vanishing files ?" (May 28, 8:38pm) On May 28, 8:38pm, Meino Christian Cramer wrote: } } > Have you checked that you're not, for example, attempting to execute } > a program named "/bin/zsh^M" (where ^M is a carriage return)? } } With vim I loaded the script in question and did a } "set list", which displays anything, which normally is suppressed. } After the "h" of "#!/bin/zsh" there is only a "$", meaning that } this is the end of line. That's not necessarily an accurate test. If the "fileformats" option in vim includes the word "dos", then it will treat "\r\n" as end of line and hide the ^M from you, even with "set list". } Same results with another editor (Microemacs). I don't know anything about Microemacs specifically, but most Emacs variants also are "smart" about automatically handling line endings. Try "cat -v" on the script.