From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25978 invoked from network); 28 May 2006 18:40:14 -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 18:40:14 -0000 Received: (qmail 36473 invoked from network); 28 May 2006 18:40:06 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 May 2006 18:40:06 -0000 Received: (qmail 27881 invoked by alias); 28 May 2006 18:39:58 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10331 Received: (qmail 27871 invoked from network); 28 May 2006 18:39:58 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 May 2006 18:39:58 -0000 Received: (qmail 35259 invoked from network); 28 May 2006 18:39:58 -0000 Received: from p54851574.dip0.t-ipconnect.de (HELO localhost) (84.133.21.116) by a.mx.sunsite.dk with SMTP; 28 May 2006 18:39:56 -0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1FkQAD-0001ZY-Uu; Sun, 28 May 2006 20:38:58 +0200 Date: Sun, 28 May 2006 20:38:57 +0200 (CEST) Message-Id: <20060528.203857.71096165.Meino.Cramer@gmx.de> To: schaefer@brasslantern.com Cc: zsh-users@sunsite.dk Subject: Re: Vanishing files ? From: Meino Christian Cramer In-Reply-To: <060528113200.ZM31855@torch.brasslantern.com> References: <20060528.172405.74744323.Meino.Cramer@gmx.de> <060528113200.ZM31855@torch.brasslantern.com> X-Mailer: Mew version 4.2.53 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Bart Schaefer Subject: Re: Vanishing files ? Date: Sun, 28 May 2006 11:32:00 -0700 > On May 28, 5:24pm, Meino Christian Cramer wrote: > } > } Why can I execute the contents of the script "tempwatch" but not the > } script itsself? > > That usually means that the program named in the #! line is not where > the path in that line says it is. > > Have you checked that you're not, for example, attempting to execute > a program named "/bin/zsh^M" (where ^M is a carriage return)? Or some > other stray character you can't see at the end of the line? I assume > zsh really is in /bin/. I did: solfire:/home/mccramer>ls -l /bin/zsh -rwxr-xr-x 2 root root 754456 Mar 28 18:32 /bin/zsh solfire:/home/mccramer> and it is no problem for me to execute /bin/zsh from the commandline -- just getting another shell. 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. Same results with another editor (Microemacs). Are there any other "bad invisible things", which may cause this effect ? Kepp hacking! Meino > } By the way: Does anyone know a trick how to remove _all_ > } Escape-Sequences from a script generated by the command "script" ... > > sed "s/[^"$'\t '"-~]//g" > > The order of tab and space in $'\t ' is important. The above actually > strips anything that's not printable ASCII, so if you're using an ISO > character set you probably need to put more stuff inside the [ ]. >