Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Detect if sourced file has made a fork
- X-seq: zsh-users 21226
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: Detect if sourced file has made a fork
- Date: Tue, 2 Feb 2016 09:54:53 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=f0L9o4maFJ2n9bcrW98BVKAgi2d8rsn0+No0qrsl6LU=; b=k6Ue0QO//n7tH9VvR4Kg4MyPlKU6NHGODHfVaNZiGDTEhl9F0KGuFW/Df+7IGe0JCO vbj/8Cd9CRCgJLaAofe32VEv2/otK5CehuhiVJB/oPlFc+1HK+Gngh/yu9uYUQnc4zN6 V8edoToZiwJIugkOjcrHQ9PnjqXBxNa8ypgAETqq6L7ODy8aB/U1IPb4KqLgCUa0U0N+ Y2td3vBmOQ6Iww/XW008kGhJpMMKfIe6WG7uwz3gxWx4NFPF0WQw5nVz+B5GQ6OA9/aM p1QGvoOdzd2WIB5EmEmmy1KHZdAghlw7Rpu5DYprhBw4mEc0Hi4QwRh0/bb+lO9jgad8 K8AQ==
- In-reply-to: <CAKc7PVDEpEgHhdXBWEgxvGAhp51pBKYiy_oEnutWuz_owzA5Jw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVDEpEgHhdXBWEgxvGAhp51pBKYiy_oEnutWuz_owzA5Jw@mail.gmail.com>
On Feb 2, 3:58pm, Sebastian Gniazdowski wrote:
}
} Not seeing it can be anyhow possible but who knows.. Is it possible to
} do: source "./a_file" and tell if `a_file' has done any pipe, ``, $()
} ?
Other than using a DEBUG trap and examining each command that is about
to be executed, I can't think of anything.
I take it you're trying to detect situations where an external command
execution could be replaced by a zsh construct.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author