You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (Updated) (JIRA)" <ji...@apache.org> on 2012/02/06 20:00:01 UTC
[jira] [Updated] (FELIX-3341) Simple csh-like Command History
[ https://issues.apache.org/jira/browse/FELIX-3341?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger updated FELIX-3341:
-------------------------------------
Attachment: FELIX-3341.patch
Proposed patch.
WDYT ?
> Simple csh-like Command History
> -------------------------------
>
> Key: FELIX-3341
> URL: https://issues.apache.org/jira/browse/FELIX-3341
> Project: Felix
> Issue Type: Improvement
> Components: Gogo Shell
> Affects Versions: gogo.shell-0.10.0
> Reporter: Felix Meschberger
> Attachments: FELIX-3341.patch
>
>
> Suggest to add a simple csh like command line history.
> * A new command "history" is added to the Shell class listing the command history
> * A new History class is added to manage a bounded, in-memory-only command history
> * Commands can be reused from the history using commands following this simple syntax:
> command = ( '!' spec ) | ( '^' subst ) .
> spec = '!' event [ ':' [ 'a' | 'g' ] 's' regex ] .
> event = ( '!' | idx | '?' find | string )
> idx = [ '-' ] { 0..9 } .
> find = string ( '?' | EOL ) .
> subst = pat '^' repl '^' EOL .
> regex = str pat str repl str EOL .
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira