Skip to content
This repository was archived by the owner on Dec 6, 2025. It is now read-only.
This repository was archived by the owner on Dec 6, 2025. It is now read-only.

Distinguish Between Array and Path Series Inputs in Fish Shell #162

@razvanazamfirei

Description

@razvanazamfirei

Please verify the following:

Xshe Version

0.5.1

Current Behavior

Passing arrays in fish shell with xshe defaults to treating them as a path series due to the automatic addition of the --path argument.

Expected Behavior

The shell script should be able to differentiate between an array intended as a series of paths and a regular array. Users should be able to pass a regular array without the script automatically considering it as a path series.

Steps To Reproduce

  1. Use xshe to set an environment variable as an array in the fish shell.
  2. Observe that the array is treated as a path series rather than a simple array.
❯ echo "XDG_DATA_DIRS   = ['element_1', 'element_2']" | xshe --pipe fish
set -gx --path XDG_DATA_DIRS 'element_1':'element_1'

Which operating systems are affected?

  • macOS
  • Windows
  • Linux

Which shells does this affect?

  • Bash
  • Zsh
  • Fish

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions