Skip to content

History is not updated when running multiple commands in the same line #8905

@liuml07

Description

@liuml07

Environment

$ fish --version
fish, version 3.4.1
$ echo $version
3.4.1
$ uname -a
Darwin Mingliangs-MacBook-Pro-M1-Max.local 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:46:32 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T6000 arm64
$ echo $TERM
xterm-256color

Problem

Running following commands, I got "true". I expect "false".

$ sh -c 'env HOME=$(mktemp -d) fish'
$ true
$ false; echo $history[1]
true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions