This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
.bashrc
exports in terminal title
#14401
Labels
.bashrc
exports in terminal title
#14401
I'm opening this issue because:
What's going wrong?
In Terminal.app Version 2.7 (377),
npm run <MY_SCRIPT_NAME>
displays exports from.bashrc
in the Terminal title, as illustrated forDUMMY_KEY
below:This is undesirable, because these could be private API keys.
How can the CLI team reproduce the problem?
In
~/.bashrc
, add the lineexport DUMMY_KEY=nkvjaSDJKVLnsD21l3rn2j
.Create a new npm project that has this script entry:
Run that script:
npm run hello
.During the
sleep 10
section, you should be able to seeDUMMY_KEY
in the title. This happens for any long-running command.supporting information:
npm -v
prints:3.10.6
node -v
prints:v6.8.1
npm config get registry
prints:https://registry.npmjs.org/
macOS Sierra Version 10.12 (16A323)
There was no npm-debug.log generated.
I have tried the following:
powerline
: no changeecho hello && sleep 10 && echo bye
(not usingnpm
): keys not shownThe text was updated successfully, but these errors were encountered: