-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
component | third-party dependencyThird party dependencyThird party dependencystatus | readyWe agree it is good to implement thisWe agree it is good to implement thistype | bugSomething isn't workingSomething isn't working
Description
For example
bashString = ''
if [[ -z ''\${1+x} ]]; then echo "no arg supplied"; fi
'';
Is currently reformatted to
bashString = ''
if [[ -z ''\${1 + x} ]]; then echo "no arg supplied"; fi
'';
which is invalid bash. (${1+x}
is a modifier a bit like ${1:-}
). The correct formatting is to leave it exactly as-is because it's not a ${} substitution with a nix expression inside, the $ is escaped.
Metadata
Metadata
Assignees
Labels
component | third-party dependencyThird party dependencyThird party dependencystatus | readyWe agree it is good to implement thisWe agree it is good to implement thistype | bugSomething isn't workingSomething isn't working