मैं एक 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!
मैं इसे कैसे ठीक करूं ???
इस प्रश्न के लिए वोटिंग क्योंकि मुझे लगता है कि यह शायद बार-बार आता है, लेकिन देखें कि ग्रेग, जॉन और डेनीथ वास्तव में ऐसा करने के बारे में क्या कहते हैं: * कुल्हाड़ी हत्या जो आपके कोड को आगे रखती है ** ** ** इस तरह नहीं होगी। * – dmckee