yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.4k stars 2.73k forks source link

yarn config set escaping is not right #8881

Open aincicau opened 2 years ago

aincicau commented 2 years ago

When you try to escape special characters, '\' character is inserted twice. i.e. when I want to type `yarn config set key "\${value}", the value is added as: "\\${value}" in .yarnrc, whereas I want to add "${value}" escaped. If i try to use it without escape, then the yarn config will try to replace it. Also the quotes only apply in .yarnrc only if the value is a link, otherwise the value will be saved without quotes.

Please fix yarn config set because escaping is not done right.