Let's imagine that I have script1.sh and script2.sh with the following sources:Script 1:#!/bin/bash# script 1echo Doing some stuff...bash script2.shecho DoneAnd Script 2:#!/bin/bash# script 2printf \r  [ \033[0;33m?\033[0m ] What is your name? read -e nameecho $nameAnd calling bash script1.sh works gracefully.I'm trying to do something similar here and executing wget -O - https://raw.githubusercontent.com/caarlos0/dotfiles/install/script/install | bash, but when it executes the script/bootstrap script, it exits in the read -e.I tried the -i flag to force interactive with no success.Any thoughts?
read -e in a sub script
bash;shell script;io redirection
Thought: You're running bash with a pipe to standard input.  And then you're asking it to read from standard input.  That won't work.Use a named pipe instead?ETA: Or maybe not mkfifo ~/tmp-pipewget -O - https://raw.githubusercontent.com/caarlos0/dotfiles/install/script/install > ~/tmp-pipe &bash ~/tmp-piperm ~/tmp-pipeBy this time, if you also want to make sure you're not trampling on some existing file, you might as well use a tempfile: There'll be less mess to deal with:P=$( mktemp )wget -O - https://raw.githubusercontent.com/caarlos0/dotfiles/install/script/install > $P &bash $Prm $PYeah.  I dunno.