Skip to content
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

!: and !! does not work because history does not preserve order #375

Closed
harrah opened this issue Jan 5, 2013 · 1 comment
Closed

!: and !! does not work because history does not preserve order #375

harrah opened this issue Jan 5, 2013 · 1 comment
Labels

Comments

@harrah
Copy link
Owner

harrah commented Jan 5, 2013

With sbt 0.11.2, whenever I use '!:', the order of entries is unpredictable; therefore !! repeats the last command of an list with unspecified order, i.e. is unusable.

I'd have guessed history entries to be unordered because they were stored in a Set, but it does not seem to be the case (I can see duplicate entries).
If the entries are to be stored in a Set to avoid duplicates, might I suggest a variation of a LinkedHashSet? A variation is needed because when retyping an old command, it must be moved to the end of the Set. That seems implementable on the client side, rather than on the LinkedHashSet itself.

@harrah
Copy link
Owner Author

harrah commented Jan 5, 2013

IMPORTANT This project has moved to https://github.com/sbt/sbt. This issue still exists to avoid dead links, but GitHub limitations prevent the original issue from being correctly preserved here. Please see sbt/sbt#375 for the full issue and to comment.

@harrah harrah closed this as completed Jan 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant