Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ilivenicely

macrumors newbie
Original poster
Apr 20, 2017
1
0
Beijing, China
Today I tried to run an ifconfig in my terminal and encountered this problem :

Last login: Fri Apr 21 14:10:52 on ttys000
-bash: export: `{PATH}:/tools': not a valid identifier
-bash: touch: command not found
bogon:~ robertmccormick$ ifconfig
-bash: ifconfig: command not found
I've tried https://forums.macrumors.com/threads/bash-command-not-found-for-almost-anything.1072580/ and https://forums.macrumors.com/threads/help-terminal-wont-run-jar-file.1067170/

when I entered :

/bin/cat ~/.bashrc
I get

export PATH="$PATH:/Applications/DevDesktop/drush"
 

Draeconis

macrumors 6502a
May 6, 2008
987
281
Not really the right place to post this, but it sounds like you might want to look at your user account.

Try running echo $HOME.
 

tomvos

macrumors 6502
Jul 7, 2005
345
119
In the Nexus.
Bash looks at more than one startup file. Depending on whether you start your bash interactive or non-interactive the relevant startup files change. So, it might be a good idea to check

/etc/profile
~/.bash_profile
~/.bash_login
~/.profile

as well as

/etc/bashrc
~/.bashrc

Perhaps one of these files will lead to the corrupt EXPORT command. Good luck.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.