Was trying to do a quick-and-dirty curl call like so:
curl -u username:$(read -s -p "password: ") https://some.basic.auth.url.com
However, this fails every time. What's more, I attempted to see what's happening with something like:
echo you entered: $(read -p "enter some text: ")
However, the output is simply:
you entered:
I'm clearly missing something essential about the use of this command (or Bash in general). Can someone shed some light on:
- Can this sort of thing even work? why?
 - If so, how could I change this to make it work without going to a script file?