Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Get the current command line from a function
- X-seq: zsh-users 14384
- From: Frank Blendinger <fb@xxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Get the current command line from a function
- Date: Tue, 15 Sep 2009 12:19:29 +0200
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Sender: Frank Blendinger <yogan@xxxxxxxxxxxxxxxxxxxxxx>
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