Skip to content

setenv.fish broken when trying to make it behave like export #3937

Closed

Description

@jeffkowalski

Recent changes (d9b30ab) have broken setenv.fish

  • Version info
    fish, version 2.5.0-296-g28bc309f
    Linux wafer 4.4.0-64-generic Website stylesheet and Google Chrome #85-Ubuntu SMP Mon Feb 20 11:50:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

  • Command
    setenv PATH /bin

  • Response
    $/ is not a valid variable in fish.
    /usr/local/share/fish/functions/setenv.fish (line 9): set -gx $v $$v
    ^
    in function “setenv”
    called on standard input
    with parameter list “PATH /bin”

Activity

  1. krader1961 commented on Apr 4, 2017

    @krader1961
    Contributor

    Thanks for catching that. I had somehow gotten it into my head that setenv used the same var=val syntax as export. I'll add unit tests for both functions to help ensure we don't introduce a regression in the future.

  2. added a commit that references this issue on Apr 17, 2017
    089195d
  3. locked as resolved and limited conversation to collaborators on Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugregression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions