zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.dk
Cc: martin f krafft <madduck@debian.org>, 537283@bugs.debian.org
Subject: Re: Bug#537283: homing in
Date: Wed, 2 Sep 2009 15:00:00 +0000	[thread overview]
Message-ID: <20090902150000.GA6966@scru.org> (raw)
In-Reply-To: <20090902070912.GA31041@piper.oerlikon.madduck.net>

On Wed, Sep 02, 2009 at 09:09:12AM +0200, martin f krafft wrote:
> % precmd_test() { set -x; test -d . && echo . is a directory; set +x; }
> % precmd_functions=(precmd_test)
> +precmd_test:0> test -d .
> +precmd_test:0> echo . is a directory
> . is a directory
> +precmd_test:0> set +x
> % [PRESS CTRL-C]
> +precmd_test:0> test -d .
> precmd_test:test: argument expected
> +precmd_test:0> set +x
> 
> 
> The same happens with [ -d . ], but /usr/bin/test and /usr/bin/[
> work fine. Thus, there must be something fundamentally out of order
> with precmd functions and builtin tests which shows only when precmd
> functions are called without a preceding exec() by the shell.
> Running an external programme before the test from the precmd
> function (e.g. ls >/dev/null) does not work though.
> 
> I can reproduce this with zsh -f.

This is the same with precmd()


       reply	other threads:[~2009-09-02 15:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20090902070912.GA31041@piper.oerlikon.madduck.net>
2009-09-02 15:00 ` Clint Adams [this message]
2009-09-02 15:20   ` Peter Stephenson

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=20090902150000.GA6966@scru.org \
    --to=schizo@debian.org \
    --cc=537283@bugs.debian.org \
    --cc=madduck@debian.org \
    --cc=zsh-workers@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).