ทำไมการติดตั้ง Cygwin ของฉันถึงมี $ PATH ที่ไม่ดี


0

ฉันเพิ่งติดตั้ง Cygwin บนคอมพิวเตอร์ของฉัน ถ้าฉันพิมพ์echo $PATHฉันสามารถเห็นผลลัพธ์นี้:

$ export $PATH
-bash: export: `/usr/local/bin:/usr/bin:/cygdrive/c/Program': not a valid identifier
-bash: export: `(x86)/NVIDIA': not a valid identifier
-bash: export: `Corporation/PhysX/Common:%CommonProgramFiles%/Microsoft': not a valid identifier
-bash: export: `Shared/Windows': not a valid identifier
-bash: export: `Live:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program': not a valid identifier
-bash: export: `Files/OpenVPN/bin:/cygdrive/c/Program': not a valid identifier
-bash: export: `(x86)/Git/cmd:/cygdrive/c/dev/java/apache-maven-3.2.3/bin:/cygdrive/c/programs/Java/jdk7/bin:/cygdrive/c/Users/edem/.lein/bin': not a valid identifier

ดูเหมือนว่ามีปัญหาการจัดรูปแบบบางอย่างที่นี่ แต่ฉันไม่สามารถวางนิ้วลงบนมันได้ มีปัญหาอะไร

คำตอบ:


1

คุณกำลังพยายามส่งออกค่า PATH เพียงส่งออกตัวแปร:

export PATH

หรือคุณเพียงแค่ทำให้เกิดความสับสนกับexportecho


export PATHฉันไม่ได้รับผลถ้าฉันทำ
Adam Arold

ฉันเดาว่าไม่ได้ทำให้การแก้ไขนั้นเร็วพอ กำลังของคุณพยายามที่จะexport PATHหรือecho $PATH?
garyjohn

Okey นี่เป็นปัญหา ตอนนี้ก็โอเคขอบคุณ
Adam Arold

ฉันไม่สามารถยอมรับได้จนกว่าคำถามของฉันจะมีอายุอย่างน้อย 10 นาที
Adam Arold
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.