Skip to content

set -l in if scope should be consistent with new for scope #4820

@mqudsi

Description

@mqudsi

Since #1935 has been committed, the following behavior changes from "enhancement" to "bug" since there's now an inconsistency in fish's syntax:

~> if not set -l output (somecmd && echo "success")
                      echo "command failed!" 1>&2
      end
      echo "Output is: "$output
Output is: 

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