vefatica wrote:
| rconn wrote:
|| Steve Howe
||| Did the act of
|||
||| CD directory
|||
||| => immediate addition as part of directory history
|||
||| get into v11 beta?
||
|| No -- it would have required a complete rewrite of the CD / CDD
|| code, as well as part of the parser. It's on the suggestion list
|| for v12, but it's much more difficult to implement than you suspect.
|
| I'd like it too, but only because I often want to start a new TCC
| and go where I was when I closed some earlier instance. Could you
| stuff the CWD into the history when a non-pipe, non-transient
| instance terminated. [Sure, I could do that in tcexit, and I could
| accomplish the OP's goal with one of the special aliases.]
I just updated my POST_EXEC alias to include the command "dirhistory /a
%_cwd". It does exactly what Steve Howe (and I) always desired. Along the
way I discovered that the DIRHISTORY command option /T does not work in
either 11.0.21 or 10.0.76. I achieved the same result, but much slower,
piping to TAIL.
A function @DIRHISTORY (similar to @DIRSTACK) might be useful.
It would be useful to be able to examine the current attributes of the
HISTORY and DIRHISTORY tables (order, duplicates, etc.).
REX:
I am too lazy to search HELP. Please verify my understanding that PRE_INPUT,
PRE_EXEC and POST_EXEC are never executed for the right side of a pipe.
--
Steve