From: Meino Christian Cramer <Meino.Cramer@gmx.de>
To: schaefer@brasslantern.com
Cc: zsh-users@sunsite.dk
Subject: Re: Vanishing files ?
Date: Sun, 28 May 2006 20:38:57 +0200 (CEST) [thread overview]
Message-ID: <20060528.203857.71096165.Meino.Cramer@gmx.de> (raw)
In-Reply-To: <060528113200.ZM31855@torch.brasslantern.com>
From: Bart Schaefer <schaefer@brasslantern.com>
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 [ ].
>
next prev parent reply other threads:[~2006-05-28 18:40 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 [this message]
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
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=20060528.203857.71096165.Meino.Cramer@gmx.de \
--to=meino.cramer@gmx.de \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/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).