Quote:
Originally Posted by MaryG
Code:
#/bin/bash
read -ep pwd_user
aa=$pwd_user
echo $aa
If I execute this echo command doesn't show anything.
|
Why did you use the -e option?
Try
Code:
read -p 'Enter password: ' pwd_user
echo "DEBUG: pwd_user: '$pwd_user'"
or
Code:
read -p 'Enter password: '
pwd_user="$REPLY'
echo "DEBUG: pwd_user: '$pwd_user'"