-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
command history incorrect after typo in previous entry #157
Comments
I believe this is a problem throughout all the shell and not just after making a typo. For example: I've noticed that when I've made a SNS topic, the command shell displays the ARN for the topic but then doesn't revert back to the origial |
Hi @stuft2, thanks for the report!
Just to clarify, it sounds like you are suggesting that aws-shell should only log your history if you execute a proper command, ignoring invalid commands?
I think this might be a separate issue, please feel free to submit a bug report if you agree. |
@donnemartin I feel like the aws-shell should log incorrect commands as well. That way you can go back and fix what you did wrong. However, the issue I'm seeing is that when I do make a typo, aws-shell logs the history incorrectly and so the following command (no matter what it is) is always wrong. The aws-shell log file snippet that I posted above shows that when I made an incorrect command, it logged To add further clarity to the log file I posted above, the first log didn't work because I made a typo in lambda and spelled it lamda instead of lambda (aws-shell also logged the command incorrectly. It added a |
I would consider this a bug but, at first glance, some may see it as a feature-request. |
Thanks for clarifying! Seems I'm seeing something different, there does seem to be a bug somewhere. Commands executed:
Contents of
Results shown after running
|
Yep, that looks like the same bug I'm finding too. |
The file history ( In addition, there is an |
When I make a typo in the aws-shell, it stores the command history in the history file incorrectly. So when I press the up arrow and correct the typo, I also have to correct the error that was made when my history was logged in the .aws/shell/history file.
My history file looks like this:
it's adding + aws on my command so when I rerun the command it says there was an error because aws is not a choice option. The error says:
aws: error: argument command: Invalid choice, valid choices are: ...
and then gives a list of the valid choices.The last command in the command history was the one that worked and the first two commands returned the error.
The text was updated successfully, but these errors were encountered: