Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Vanishing files ?
- X-seq: zsh-users 10337
- From: Meino Christian Cramer <Meino.Cramer@xxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx
- Subject: Re: Vanishing files ?
- Date: Mon, 29 May 2006 04:38:34 +0200 (CEST)
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <060528162431.ZM32110@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <060528113200.ZM31855@xxxxxxxxxxxxxxxxxxxxxx> <20060528.203857.71096165.Meino.Cramer@xxxxxx> <060528162431.ZM32110@xxxxxxxxxxxxxxxxxxxxxx>
From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
Subject: Re: Vanishing files ?
Date: Sun, 28 May 2006 16:24:31 -0700
> 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.
>
THAT's it !!!
Thanks a lot, one nightmare less ! :)
Keep hacking!
Meino
Messages sorted by:
Reverse Date,
Date,
Thread,
Author