From: Meino Christian Cramer <Meino.Cramer@gmx.de>
To: zsh@dervishd.net
Cc: zsh-users@sunsite.dk
Subject: Re: Vanishing files ?
Date: Mon, 29 May 2006 10:56:03 +0200 (CEST) [thread overview]
Message-ID: <20060529.105603.104038094.Meino.Cramer@gmx.de> (raw)
In-Reply-To: <20060529061119.GA12058@DervishD>
From: DervishD <zsh@dervishd.net>
Subject: Re: Vanishing files ?
Date: Mon, 29 May 2006 08:11:19 +0200
Hi Raúl,
the problem has been solved in between:
The thing is, that vim and Microemacs are a little too smart as to be
helpful in this special case (and I myself didn't know that ;)
My first line of the script was
#!/bin/zsh^M
and an interpreter with the name 'zsh^M' does not exist on my system.
BANG!
But the '^M' wasn't visible to me, since vim and Microemacs both
recognized that file as to be "DOS-borne" and switches into DOS-mode
internally. Vim and Microemacs have special modes to display
all non-printable characters and would (as I thought in that moment)
display a stray ^M if switched to that mode.
BUT they were als in DOS-mode, which means a ^M isn't a stray
character but one half of the end of line in DOS mode (CR/LF instead
of LF)
So I only saw a "#!/bin/zsh$", which looks ok.
The swiss army knife in this case was "cat". Cat doesn't know
anything about DOS/UNIX or whatever. It simply pull everything
into visibility when called as "cat -v".
And then there were light... ;O))
Keep hacking and thanks a lot for your help!
Meino
> Hi Meino :)
>
> * Meino Christian Cramer <Meino.Cramer@gmx.de> dixit:
> > > * Meino Christian Cramer <Meino.Cramer@gmx.de> dixit:
> > > > Why can I execute the contents of the script "tempwatch" but not the
> > > > script itsself?
> > >
> > > Probably because you don't have read or execute permissions for
> > > the script :?? You can execute the contents because you're entering
> > > them in the command line, but that has nothing to do with the
> > > problem you have.
> >
> >
> > Hmmm...I did a
> >
> > solfire:/home/mccramer>ls -l bin/tmepwatch
> > -rwxr-xr-x 1 mccramer users 79 May 28 20:36 bin/tmepwatch
> > solfire:/home/mccramer>
> >
> > and it seems to be an X-file ;)
>
> It is!. Well, then the problem is probably that the first line of
> the script doesn't contain a valid interpreter. Could you please post
> the first line of bin/tmepwatch?
>
> Raúl Núñez de Arenas Coronado
>
> --
> Linux Registered User 88736 | http://www.dervishd.net
> http://www.pleyades.net & http://www.gotesdelluna.net
> It's my PC and I'll cry if I want to... RAmen!
>
next prev parent reply other threads:[~2006-05-29 8:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-28 15:24 Meino Christian Cramer
2006-05-28 18:32 ` Bart Schaefer
2006-05-28 18:38 ` Meino Christian Cramer
2006-05-28 23:24 ` Bart Schaefer
2006-05-29 2:38 ` Meino Christian Cramer
2006-05-29 7:57 ` Anssi Saari
2006-05-29 15:32 ` Peter Stephenson
2006-05-29 17:51 ` Paul Lew
2006-05-29 18:16 ` De-script (Re: Vanishing files ?) Bart Schaefer
2006-05-28 18:37 ` Vanishing files ? DervishD
2006-05-28 18:44 ` Meino Christian Cramer
2006-05-29 6:11 ` DervishD
2006-05-29 8:56 ` Meino Christian Cramer [this message]
2006-05-29 8:58 ` DervishD
2006-05-30 21:59 ` Tobias Gruetzmacher
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060529.105603.104038094.Meino.Cramer@gmx.de \
--to=meino.cramer@gmx.de \
--cc=zsh-users@sunsite.dk \
--cc=zsh@dervishd.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).