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

HOW TO distiguish between command input and forked subshell ?



Hi! (again :-)

I have another very spcific question...

I would like to have a zsh-function behave different if called
inside $(...) or backticks !
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 ?

Clueless (again),  Stucki

Christoph von Stuckrad       * *  | talk to  | <stucki@xxxxxxxxxxxxxxxxx> \
Freie Universitaet Berlin    |/_* | nickname | ...!unido!fub!leibniz!stucki|
Fachbereich Mathematik, EDV  |\ * | 'stucki' | Tel:+49 30 838-7545{9|8}    |
Arnimallee 2-6/14195 Berlin  * *  |  on IRC  | Fax:+49 30 838-5913        /



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