Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Funny interaction between set -ql and if #2502

Copy link
Copy link

Description

@ridiculousfish
Issue body actions
set -l foo bar
if set -ql foo
  echo Found it
end

This does not echo "Found it" like one might expect. I guess the if statement introduces a new scope which contains the condition, so the local variable is not found. But even so, it really seems like this ought to succeed.

set -ql should probably check up to the function boundary.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsAn issue/PR that touches or should touch the docsAn issue/PR that touches or should touch the docsrelease notesSomething that is or should be mentioned in the release notesSomething that is or should be mentioned in the release notes

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.