Skip to content

alias name in .bashrc ending with dash '-' causes error #653

Description

@jgreenbow

Describe the bug
If an alias is declared in the .bashrc where the name ends in a dash, the shell cannot be initialized.

error: error reinitializing remote: error initializing shell: cannot parse bash declare output: bash-declare-output:7:73: - must be followed by an expression

To Reproduce
Steps to reproduce the behavior:

  1. Add alias p-='popd' to your .bashrc
  2. Start a new local session tab (bash) or /reset a current one

Expected behavior
Local bash session starts without error.

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Linux, x64
  • Version: Client Version 0.7.5 (20240502-224742)

Additional context
This alias causes no issues in other terminal environments. The dash character is certainly acceptable as an interior character in an alias e.g. alias my-alias='echo'. Bash alias naming question on SO: Which characters are allowed in a bash alias. Bash alias naming in Bash Reference Manual - 6.6 Aliases

Metadata

Metadata

Assignees

No one assigned

    Labels

    legacyIssue pertaining to WaveLegacy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions