You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from install page guide, in the end of script, it will append PNPM_HOME related config in shell config file.
Describe the Bug
the problem is, according to POSIX standard (https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206). a newline should be at the end of file. otherwise, it will cause some problems like: later execute echo "export SOME_VAR=something" >> ~/.zshrc, it can not append in newline, result something like #pnpm endexport SOME_VAR=something
Expected Behavior
maybe functions in path-extender-posix.ts file should add newline \n at the end of config file.
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
Operating System (Windows, MacOS, Linux)
Link to the code that reproduces this issue or a replay of the bug
https://github.com/pnpm/components/blob/main/os/env/path-extender-posix/path-extender-posix.ts#L194C23-L194C33
Reproduction steps
from install page guide, in the end of script, it will append PNPM_HOME related config in shell config file.
Describe the Bug
the problem is, according to POSIX standard (https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206). a newline should be at the end of file. otherwise, it will cause some problems like: later execute
echo "export SOME_VAR=something" >> ~/.zshrc
, it can not append in newline, result something like#pnpm endexport SOME_VAR=something
Expected Behavior
maybe functions in
path-extender-posix.ts
file should add newline\n
at the end of config file.related links
Which Node.js version are you using?
16.14.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: