Skip to content

Bug with last command feature. #8

@ArturAssisComp

Description

@ArturAssisComp

The user must type '!!' to execute the last command. The bug arises when the user executes the last command using the history command feature (!!) multiple times in a row, as the following example shows:

$ ls
folder1 folder2 file1
$ !!
Last command: ls
folder1 folder2 file1
$ !!
Last command: !!
Lexical Error: Invalid char '!' at position 0.

To solve this bug, typying '!!' should never call itself as a last command. In the example, it should call 'ls' as the last command in the second time that the user types '!!'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions