Skip to content

Parsing fails for expansion: ${s#+( )} (or with %) (trim string) #152

Closed
@Tatsh

Description

@Tatsh

This is something I use for trimming strings of whitespace at the end and beginning:

filename=${filename##+( )}
filename=${filename%%+( )}

Metadata

Metadata

Assignees

No one assigned

    Labels

    grammar bugIssues related to the bash grammar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions