Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

How to get 'fc' context?



Hi,

I'm reading the manual:

  fc     Code from the shell history executed by the -e
         option to the fc builtin.

But looks like I cannot get the 'fc' context when doing this:


localhost% print $zsh_eval_context
toplevel
localhost% fc -e -
print $zsh_eval_context
toplevel file
localhost%

How can we get the 'fc' context, please?

Thanks!



Messages sorted by: Reverse Date, Date, Thread, Author