zsh-users
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Mircea Damian <dmircea@secu.kappa.ro>, zsh-users@math.gatech.edu
Subject: Re: How to trigger the death of zsh(3.0.5)
Date: Thu, 8 Oct 1998 11:58:31 -0700	[thread overview]
Message-ID: <981008115831.ZM20784@candle.brasslantern.com> (raw)
In-Reply-To: <19981008204953.A9624@kappa.ro>

On Oct 8,  8:49pm, Mircea Damian wrote:
} Subject: How to trigger the death of zsh(3.0.5)
}
}  I posted a while ago a message about the "disappearing zsh".
}  I'm still using zsh-3.0.5(the one which comes with slackware 3.5) and I
} found a way to trigger the death of zsh:
}  I'm doing a backward-i-search(Ctrl-r) for "ls"(without quotes) and instead
} of pressing enter I'm hitting Ctrl-C(which is interrupt key for my terminal)
} the prompt for search is disappearing. Then it's enough to type "ls",
} enter and the shell is dead.

A patch for this was posted to zsh-workers some while ago.  You can find
the article at:

	http://www.zsh.org/cgi-bin/mla/workers/bynum/4172

There's a related thread that explains what's going on, which you can find
by looking at:

	http://www.zsh.org/cgi-bin/mla/workers/bynum/4095

but you want the patch from 4172, not 4095.  It should apply OK to 3.0.5
even though the subject says 3.1.4.  (The above URLs are to HTML-ified
messages; you probably want to hit <http://www.zsh.org/mla/zsh-workers/>
and pick up the appropriate gzip'd tar file for patching.)

} 2)
} Another question: Is there any way to bind the keys the way they are in
} bash for "insert-last-word"? I'm trying to convince some other people to
} move to zsh but it seems that this is a big impediment for them.

That function is bound by default to ESC . and ESC _ in zsh.  Rebinding to
the bash equivalent is as easy as:

	bindkey '\C\My' insert-last-word

} 3)
} Why zsh is not able to run the script which comes with linux kernel
} scripts/patch-kernel? It seems that it is not passing the PATH enviroment

That's not very likely to be the problem.  More likely is that patch-kernel
is a bash script, and you're being bitten by something like SH_WORD_SPLIT
behavior.  You need to tell zsh to emulate sh when reading /bin/sh scripts.

} with a command like:
} 
} . scripts/patch-kernel

Ooo, ick.  Don't do that.  Script files are rarely intended to be read into
an interactive shell that way.  (Not never, but rarely, and surely not in
that particular case.)

} zsh scripts/patch-kernel

Try (from your login zsh):

	ARGV0=sh zsh scripts/patch-kernel

or just run patch-kernel with "sh" as was intended.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1998-10-08 19:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-08 17:49 Mircea Damian
1998-10-08 18:58 ` Bart Schaefer [this message]
1998-10-08 19:44   ` Mircea Damian
1998-10-08 19:49     ` Mircea Damian
1998-10-08 21:34       ` Bart Schaefer
1998-10-09  4:43         ` Mircea Damian
1998-10-09 16:17           ` Bart Schaefer
1998-10-09 18:29             ` Mircea Damian
1998-10-12 14:53               ` Bart Schaefer
1998-10-12 16:40                 ` Mircea Damian
1998-10-12 17:22                   ` Bart Schaefer
1998-10-13  9:02                     ` Mircea Damian
1998-10-08 19:15 ` Rob Windsor
1998-10-08 19:26 Rob Windsor

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=981008115831.ZM20784@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=dmircea@secu.kappa.ro \
    --cc=zsh-users@math.gatech.edu \
    /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).