Skip to content

Bug: prefix substitution does not work with empty prefix string #948

@solidDoWant

Description

@solidDoWant

When using a prefix substitution with an empty string (e.g. ${SOME_VAR/#""/prefix-}), Flux fails to replace the prefix. No error is reported; flux simply does not replace the value. This is valid in bash as shown below:

$ v=somevalue
$ echo "${v/#""/prefix-}"
prefix-somevalue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions