zsh-users
 help / color / mirror / code / Atom feed
* How to trigger the death of zsh(3.0.5)
@ 1998-10-08 17:49 Mircea Damian
  1998-10-08 18:58 ` Bart Schaefer
  1998-10-08 19:15 ` Rob Windsor
  0 siblings, 2 replies; 14+ messages in thread
From: Mircea Damian @ 1998-10-08 17:49 UTC (permalink / raw)
  To: zsh-users



Hello,

1)
 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) so
the prompt for search is disappearing. Then it's enough to type "ls",
enter and the shell is dead.


My machine is linux-2.0.33 on a ix86 architecture(P200) with slackware 3.5.

The strace output is available on request.

Here is the /etc/zprofile(which is linked to /etc/zshrc):

export PS1='%n@%m:%~%# '
export PATH=/usr/lib/teTeX/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/samba/bin:.
export HISTFILE=~/.history
export HISTSIZE=500
export LESSOPEN="|lesspipe.sh %s"
export LESS="-MMQ"
export SAVEHIST=500
export PAGER=less
export MIBS=ALL

setopt histignoredups histignorespace nobeep autocd autolist nonomatch appendhistory nobgnice correctall histnostore listtypes

# Home, End, Del for linux and xterm
bindkey "^[[1~" beginning-of-line
bindkey "^[[3~" delete-char
bindkey "^[[4~" end-of-line

ulimit -c 0

#ls colors
eval `dircolors -z`

#alias part
alias cls=clear
alias l='ls -lsa'
alias cp='cp -i'
alias mv='nocorrect mv -i'
alias s='screen'

#we are done
echo

--- end here ---

I have no personal rcfiles.


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.
In bash if I type Ctrl-Alt-y it inserts the first argument of the previous
command(this can be done also with ESC Ctrl-y as two hits sequence). Of
course if this is preceded be a Alt-number(or ESC number) it will insert
the argument of the previous command with that number.


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
variable because it is not finding "gzip" or "bzip2"(I'm runing the script
with a command like:

. scripts/patch-kernel

or 

zsh scripts/patch-kernel
)


I would appreciate any help or hints.
Thank you,

-- 
Mircea Damian
Network Manager
dmircea@roedu.net, dmircea@lbi.ro, dmircea@kappa.ro
MD65-RIPE, MD2225, MD1-6BONE
Phone: +40-1-4115246


^ permalink raw reply	[flat|nested] 14+ messages in thread
* Re: How to trigger the death of zsh(3.0.5)
@ 1998-10-08 19:26 Rob Windsor
  0 siblings, 0 replies; 14+ messages in thread
From: Rob Windsor @ 1998-10-08 19:26 UTC (permalink / raw)
  To: Mircea Damian; +Cc: zsh-users

I did blather:

> Verily did Mircea Damian write:

>> 1)
>>  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) so he prompt for search is disappearing. Then it's enough
>>  to type "ls", enter and the shell is dead.

>> My machine is linux-2.0.33 on a ix86 architecture(P200) with slackware 3.5.

> I can reproduce this bug on Solaris-2.6/sparc, SunOS 4.1.3_U1/sparc, and
> NetBSD-1.3.2/i386.

>> Here is the /etc/zprofile(which is linked to /etc/zshrc):

> [...]

>> setopt histignoredups histignorespace nobeep autocd autolist nonomatch
>> appendhistory nobgnice correctall histnostore listtypes

> I removed my .zshenv (no other zsh files) and went through my configuration
> line-by-line (option-by-option) to determine which one was consistently
> killing off my shell.  I found:

> ====
> : wst103:~; telnet localhost
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.


> SunOS 5.6

> login: windsor
> Password: 
> Last login: Thu Oct  8 13:47:59 from localhost
> wst103% setopt prompt_subst
> (C-r, ls, C-c)
> wst103% ls
> Connection closed by foreign host.
> ====

> But I couldn't accurately reproduce the bug with your list of setopts, just
> "prompt_subst" (which you don't have listed).

Oh, one other addition to this:

If you use C-g (emacs "abort" keybinding instead of terminal INTR), your
shell doesn't blow out.

-- Rob
----------------------------------------
Internet: windsor@warthog.com
Life: Rob@Carrollton.Texas.USA.Earth

The weather is here, wish you were beautiful.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~1998-10-13  9:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-08 17:49 How to trigger the death of zsh(3.0.5) Mircea Damian
1998-10-08 18:58 ` Bart Schaefer
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

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).