Edited bashrc not sure how to fix
Hello I've been using linux a few months now and everythings been going great. Im on Mint 14 w/ Cinnamon 64-bit.
Well I was recently following this guide: Code:
http://forum.xda-developers.com/showthread.php?t=1550414 Well at step 7 I alterd the line Code:
# Android tools Code:
# Android tools Code:
bash: export: `Dev/sdk/platform-tools:~/Documents/Android': not a valid identifier |
Code:
# Android tools Markus |
As markush said, it's the spaces. The right side of a "varname=value" setting command can only consist of a single "word" (more accurately, a "token"), as deliminated by whitespace. Quoting the string forces the shell to ignore the spaces and see it as a single unit.
This is one specific instance of the shell's argument processing and word-splitting behavior, the understanding of which is vital for scripting and shell use. Study these links well: http://mywiki.wooledge.org/Arguments http://mywiki.wooledge.org/WordSplitting http://mywiki.wooledge.org/Quotes Even better, if at all possible, is to just not have spaces in file and path names in the first place. ;) Also note, BTW, that "~" is an alias designed mostly for interactive use. It's usually recommended to use the built-in "$HOME" variable instead for scripted commands. Code:
export PATH="$HOME/Documents/Android Dev/sdk/platform-tools:$HOME/Documents/Android Dev/sdk/platform-tools:$PATH" |
Thank you so much that fixed it.
Thanks for the links too, Ill be reading those soon. |
All times are GMT -5. The time now is 08:30 PM. |