我試圖在我的用戶目錄中設置一個名爲bin
的文件夾。可悲的是,我第一次追加新目錄的嘗試是錯誤的,因爲我錯過了"
。我試圖打開.bash_profile
試圖刪除我的第一次嘗試,但由於不知道我在保存時做了什麼,因此在打開bash
時出現這些錯誤。命令行OSX:配置PATH變量
Last login: Mon Dec 23 11:13:39 on ttys000
-bash: /Users/daz/.bash_profile: line 2: unexpected EOF while looking for matching `"'
-bash: /Users/daz/.bash_profile: line 3: syntax error: unexpected end of file
darryls-mini:~ daz$ cat ~/.bash_profile
PATH=$PATH:~/bin"
PATH="$PATH:~/bin"
darryls-mini:~ daz$
cat
之後的第一行是不正確的。這是我的嘗試刪除bash_profile
文件並重新保存它使用pico ~/.bash_profile