Skip to content

Value of $_ overwritten in bash #367

@HaleTom

Description

@HaleTom

In bash, $_ should be “the last argument of the last command executed”

Instead, this is overwritten:

> @ravi@boxy:~/.dotfiles(master* u+1)$ echo "This argument should be printed"
> This argument should be printed
> @ravi@boxy:~/.dotfiles(master* u+1)$ echo $_
> chruby_auto
> @ravi@boxy:~/.dotfiles(master* u+1)$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions