|
From: Paul <pau...@af...> - 2012-10-25 14:55:17
|
> >> I try to run more than one command within the MinGW shell: cd > >> mydir; ./configure; make; make install but this does not work. The > >> cd command creates the error that the path does not exists, but if > >> I run each command alone all commands are working. > >> > > > > Yes, it works. The execution stops at the first failing command. > > If you want the execution of the commands to execute regardless of > > if they fail then you need to use || instead of ; where || > > represents OR. The ; is being treated as && which represents AND. > > Yes I know, but ; is correct. It seems the "cd" command fails I think what Philipp is trying to say is that when he runs all the commands on one line separated by a semicolon, the cd command fails, causing all the commands to fail, but when he runs them individually, they all work, including the cd command. What he is asking is why is the cd command failing when run with the other commands, as on its own it has no reason to fail. I could be wrong, I just see potential miscommunication happening... Paul |