in reply to Re: Has a Windows-based tcsh-like shell been created in Perl yet ...?
in thread Has a Windows-based tcsh-like shell been created in Perl yet ...?
Here's an example of something I'd like a shell to be capable of (and this would be "piece of cake" in Perl) -- allow a history listing mechanism that not only shows last N commands, but lets you search using a regex for matching commands:
This kind of task would be perfect for the powerful idioms in Perl!h 15 # Would give the last 15 commands (like "hist +ory 15") h word1 word2 word3 # Would list commands containing all of the g +iven words h /^(vim?|emacs)\b/ # Would list all editing commands (vi, vim, e +macs)
|
|---|