Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to get 'fc' context?
- X-seq: zsh-users 20011
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-user <zsh-users@xxxxxxx>
- Subject: Re: How to get 'fc' context?
- Date: Sat, 14 Mar 2015 18:38:02 -0700
- In-reply-to: <20150314234403.GA2795@localhost.localdomain>
- 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: <20150314234403.GA2795@localhost.localdomain>
On Mar 15, 7:44am, Han Pingtian wrote:
}
} How can we get the 'fc' context, please?
I don't think there is an "fc context" in the way you seem to mean.
"fc" either invokes an external editor, in which case the shell is
not involved at all, or it feeds the history directly back to the
interpreter again, in which case it's not doing anything that would
have a context.
The reason you get "toplevel file" is because "fc -e" has copied the
history event to a file and then invoked "source" on the file.
What exactly are you trying to accomplish with this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author