Skip to content

export VAR=value exit status is 1 (but set -x exits cleanly) #4435

@spinningarrow

Description

@spinningarrow
fish --version: fish, version 2.6.0
uname -a: 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
$TERM: screen-256color

I understand that the idiomatic way to export variables in fish is using set -x. However, export is also available for compatibility. When I use export, the variable gets set and exported, but the exit code of the export function is 1. Is this normal?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions