Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Vanishing files ?
- X-seq: zsh-users 10336
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Vanishing files ?
- Date: Sun, 28 May 2006 16:24:31 -0700
- In-reply-to: <20060528.203857.71096165.Meino.Cramer@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060528.172405.74744323.Meino.Cramer@xxxxxx> <060528113200.ZM31855@xxxxxxxxxxxxxxxxxxxxxx> <20060528.203857.71096165.Meino.Cramer@xxxxxx>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author