[ 
https://issues.apache.org/jira/browse/ACCUMULO-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983402#comment-13983402
 ] 

Bill Havanki commented on ACCUMULO-2741:
----------------------------------------

It's definitely convenient having those interactive responses in the history, 
but my gut tells me it could become problematic. The history should probably 
stick to commands and not include responses to their additional questions. I'm 
thinking of a scenario like dumping the history for replay later, or some other 
situation where the string "yes" needs to be interpreted as something other 
than a command. Makes things complex. Especially if a command changes prompts 
over time.

Being able to up-arrow is definitely nice, though. If there were some way to 
preserve that it'd be great for the user experience.

An escape for the example here is to use {{deletetable -f}} to avoid the need 
for a prompt. Can every shell command be run without the need for a user prompt?

> Responses to command prompts show up in shell history
> -----------------------------------------------------
>
>                 Key: ACCUMULO-2741
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2741
>             Project: Accumulo
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 1.6.0
>            Reporter: Mike Drob
>
> The "yes" should not appear in the command history.
> {noformat}
> root@cluster> deletetable test
> deletetable { test } (yes|no)? yes
> root@cluster> history
> 12: deletetable test
> 13: yes
> 14: history
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to