-
Notifications
You must be signed in to change notification settings - Fork 162
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
GNU make: grc causes shell builtin read -p "prompt text: "
to not print to terminal in Makefile
#82
Comments
Ah, I see why it's being used in this case... it's this: |
read -p "prompt text: "
to not print to terminalread -p "prompt text: "
to not print to terminal in Makefile
FYI: I have validated that this behavior has something to do with the Editing the
Edits made:
|
I have a hunch that this was related to pipe buffering, and could possibly be mitigated by |
When using the
read -r -p "some prompt here: "
bash builtin and havinggrc
loaded into the shell, it appears that the prompt is never displayed. This can cause confusion with things that spawn sub-shells such asmake
, and probably some bash scripts (maybe other tools too).Here is a
Makefile
to reproduce the issueTo reproduce:
grc
into~/.bashrc
brew install grc
, then add the following to~/.bashrc
:source "$(brew --prefix)/etc/grc.bashrc"
bash
shell & cd to the directory with thisMakefile
make test
read
(as theMakefile
is written to do)read
was actually expecting input, which you were unaware ofThen, try commenting out the
source
line which loadsgrc
into the shell. Retry the samemake test
and see the prompt is shown.I'm stumped as to why loading
grc
is affecting shell builtins in this way... the entire contents of the file under$(brew --prefix)/etc/grc.bashrc
only hasalias
definitions:I've tested this with:
bash --version
=GNU bash, version 4.4.12(1)-release (x86_64-apple-darwin15.6.0)
make --version
=GNU Make 3.81
grc --version
=Generic Colouriser 1.11.1
(from Homebrew)And it also appears to affect the default shell
/bin/sh
on mac as well:/bin/sh --version
=GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)
make --version
=GNU Make 3.81
grc --version
=Generic Colouriser 1.11.1
(from Homebrew)The text was updated successfully, but these errors were encountered: