Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current process on port shows partial path for directories with spaces #3439

Closed
rmccue opened this issue Nov 11, 2017 · 0 comments
Closed

Current process on port shows partial path for directories with spaces #3439

rmccue opened this issue Nov 11, 2017 · 0 comments

Comments

@rmccue
Copy link
Contributor

rmccue commented Nov 11, 2017

Is this a bug report?

Yes.

Can you also reproduce the problem with npm 4.x?

Yes.

Environment

  1. node -v: v6.0.11
  2. npm -v: 5.5.1
  3. yarn --version (if you use Yarn): 1.2.1
  4. npm ls react-scripts (if you haven’t ejected): 1.0.17

Then, specify:

  1. Operating system: macOS 10.12

Steps to Reproduce

  1. mkdir "/tmp/test dir"
  2. create-react-app "/tmp/test dir/a"
  3. create-react-app "/tmp/test dir/b"
  4. cd "/tmp/test dir/a" && npm start"
  5. cd "/tmp/test dir/b" && npm start"

Expected Behavior

? Something is already running on port 3000. Probably:                                    
  node scripts/start.js (pid 1337)           
  in /tmp/test dir/a

Actual Behavior

? Something is already running on port 3000. Probably:                                    
  node scripts/start.js (pid 1337)           
  in /tmp/test

The way awk is used to get the directory from lsof causes directories with spaces to have their spaces stripped. This is because it does print $9, which prints only the 9th field, not any following ones.

@Timer Timer added this to the 1.0.x milestone Dec 8, 2017
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants