Makefile - Почему команда чтения не считывает вводимые пользователем данные?

У меня есть следующий код внутри Makefile:

# Root Path
echo "What is the root directory of your webserver? Eg. ~/Server/htdocs" ;
read root_path ;
echo $root_path ;
if [ ! -d $root_path ] ; then \
    echo "Error: Could not find that location!" ; exit 1 ; \
fi

Однако при вводе чего-либо (например, «asd») возвращается следующее:

What is the root directory of your webserver? Eg. ~/Server/htdocs

asd
oot_path
Error: Could not find that location!

Когда то, что я ожидал увидеть, будет:

What is the root directory of your webserver? Eg. ~/Server/htdocs

asd
asd
Error: Could not find that location!

Как мне исправить это ???

15
задан balupton 18 September 2010 в 22:38
поделиться