zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <bart@sunny.netmanage.com>
To: "C. v. Stuckrad" <stucki@math.fu-berlin.de>
Cc: Zsh workers list <zsh-workers@math.gatech.edu>
Subject: Re: HOW TO distiguish between command input and forked subshell ?
Date: Thu, 5 Sep 1996 16:23:13 -0700	[thread overview]
Message-ID: <960905162314.ZM11373@admin.diego.netmanage.com> (raw)
In-Reply-To: "C. v. Stuckrad" <stucki@math.fu-berlin.de> "HOW TO distiguish between command input and forked subshell ?" (Sep  6, 12:47am)

On Sep 6, 12:47am, C. v. Stuckrad wrote:
> Subject: HOW TO distiguish between command input and forked subshell ?
> 
> Hi! (again :-)

You should be asking these questions on zsh-users rather than zsh-workers.
They don't have much to do with zsh development or build problems.

Not that it would matter much, since everybody on zsh-workers also gets
zsh-users, but some people might be filtering based on the To: address.

> Exactly, I want to have the function 'chpwd' give some output
> if triggered by 'cd' or 'chdir' BUT TO GIVE NO OUTPUT
> if triggered by cases like  '... $(cd somewhere; ls)...' 
> 
> Might that be possible ?

chpwd() {
    if [[ -t 1 ]]
    then
	print By golly, my standard output is a terminal.
    fi
}


  reply	other threads:[~1996-09-05 23:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-09-05 22:47 C. v. Stuckrad
1996-09-05 23:23 ` Bart Schaefer [this message]
1996-09-06  9:08   ` Andrej Borsenkow
1996-09-06 10:47     ` Zoltan Hidvegi

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=960905162314.ZM11373@admin.diego.netmanage.com \
    --to=bart@sunny.netmanage.com \
    --cc=stucki@math.fu-berlin.de \
    --cc=zsh-workers@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).