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

Get the current command line from a function



Hi,

I would like to get the entered command line from a function, just like
!!, but at an earlier time. An example:

    foo -x -y | my-func -z

I'd like to get the whole line within my-func, so obviously $0 $* don't
work. Is there a way to do that?


Greetings,
Frank

-- 
Frank Blendinger | fb(at)intoxicatedmind.net | GPG: 0x0BF2FE7A
Fingerprint: BB64 F2B8 DFD8 BF90 0F2E 892B 72CF 7A41 0BF2 FE7A

Attachment: signature.asc
Description: Digital signature



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