PATH enthält ungültige Zeichen

PATH enthält ungültige Zeichen

Ich habe an meinem PATH auf meinem Mac herumgefummelt, weil Homebrew nicht funktionierte. Mein Pfad ließ sich in drei Versionen unterteilen:

Der saubere Pfad ist der ideale Pfad, da ich das SDK von Pebble nicht mehr verwende. Der böse Pfad ist der ursprüngliche, durcheinandergebrachte Pfad. Der alte Pfad ist der böse Pfad, bei dem die Fehler entfernt wurden

 Nasty path

   /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0- BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3


Clean path

/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3


OLD PATH


/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/Users/peterkaminski/anaconda/bin:“/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin:/Users/peterkaminski/apache-ant-1.9.3/bin:??

Mein ~/.bash_profile für den fehlerhaften Pfad sieht folgendermaßen aus: (Verzeihen Sie mir, ich habe ungefähr eine Stunde damit herumgespielt und versucht, es zu reparieren, daher sieht es furchtbar aus.)

JAVA_HOME="/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home"
ANT_HOME="/Users/peterkaminski/apache-ant-1.9.3"
LES_SDK="/Users/peterkaminski/Lexmark"


export PATH=~/pebble-dev/PebbleSDK-2.0-BETA4/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA4/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA5/bin:$PATH
export PATH=~/pebble-dev/PebbleSDK-2.0-BETA5/bin:$PATH

export JAVA_HOME
export ANT_HOME
export LES_SDK

PATH=“/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA5/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/Users/peterkaminski/pebble-dev/PebbleSDK-2.0-BETA4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$LES_SDK”
export PATH




# added by Anaconda 2.2.0 installer
export PATH="/Users/peterkaminski/anaconda/bin:$PATH"

#PATH=“/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$JAVA_HOME/bin:$ANT_HOME/bin:$LES_SDK”
#export PATH

##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-06-24_at_10:32:22
##

# MacPorts Installer addition on 2015-06-24_at_10:32:22: adding an appropriate PATH variable for use with MacPorts.
# export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.


##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-09-07_at_22:49:58
##

# MacPorts Installer addition on 2015-09-07_at_22:49:58: adding an appropriate PATH variable for use with MacPorts.
#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.


##
# Your previous /Users/peterkaminski/.bash_profile file was backed up as /Users/peterkaminski/.bash_profile.macports-saved_2015-09-24_at_23:53:49
##

# MacPorts Installer addition on 2015-09-24_at_23:53:49: adding an appropriate PATH variable for use with MacPorts.
#export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
# Finished adapting your PATH environment variable for use with MacPorts.

Wie ändere ich den Pfad, um ihn wieder in den Standardzustand zu versetzen? Oder sind Ihnen eklatante Fehler aufgefallen? Ich bin mir nicht sicher, was das Hinzufügen eines " und des Bin:?? bewirken würde.

verwandte Informationen