Skip to content

relint-pre-commit.sh ${@:1} needs to be "${@:1}" with quotes #3

@moseb

Description

@moseb

In relint-pre-commit.sh the ${@:1} lacks quotes, i.e. it should be "${@:1}" to support arguments with spaces. Let me demo the difference to you:

$ demo_bad() { echo ${@:1} ; }

$ demo_good() { echo "${@:1}" ; }

$ demo_bad "one  two" "three  four"
one two three four

$ demo_good "one  two" "three  four"
one  two three  four

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions