Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

node -v in bash PROMPT_COMMAND causes assertion error #1720

Closed
isaacs opened this issue Sep 15, 2011 · 6 comments
Closed

node -v in bash PROMPT_COMMAND causes assertion error #1720

isaacs opened this issue Sep 15, 2011 · 6 comments
Assignees

Comments

@isaacs
Copy link

isaacs commented Sep 15, 2011

Reproduce:

export PROMPT_COMMAND='node -v'
bash

On the first call, it raises this:

Assertion failed: (stream->write_queue_size == 0), function uv__write, file src/unix/stream.c, line 324.
@ghost ghost assigned bnoordhuis Sep 15, 2011
@bnoordhuis
Copy link
Member

Taking ownership, I'm pretty sure I know what's causing this.

@isaacs
Copy link
Author

isaacs commented Sep 16, 2011

Correction: the PROMPT_COMMAND isn't what causes this. It's due to having . <(npm completion -s) in my .bashrc file.

@isaacs
Copy link
Author

isaacs commented Sep 16, 2011

Also, piping stderr to /dev/null prevents the error.

@isaacs
Copy link
Author

isaacs commented Sep 16, 2011

Steps to reproduce:

// shellout.js
console.log("echo 'foo'")
. <(node shellout.js)

Expect: Echo foo to console

Actual: Assertion failure

@ry
Copy link

ry commented Sep 16, 2011

@isaacs
Copy link
Author

isaacs commented Sep 17, 2011

Verified closed as of 0.5.7. Thanks.

@isaacs isaacs closed this as completed Sep 17, 2011
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

3 participants