|
From: Earnie B. <ea...@us...> - 2012-10-25 18:50:42
|
On Thu, Oct 25, 2012 at 2:09 PM, Kraus Philipp <phi...@fl...> wrote: > > Am 25.10.2012 um 17:18 schrieb Earnie Boyd: > >> On Thu, Oct 25, 2012 at 10:54 AM, Paul wrote: >>>>>> 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. >>> >> >> WJFFM: >> >> $ cd spud; ls -l; cd -; ls -l >> total 4 >> -rw-r--r-- 1 Earnie Administrators 20 Oct 21 13:18 a.c >> -rw-r--r-- 1 Earnie Administrators 288 Oct 21 13:19 a.o >> -rw-r--r-- 1 Earnie Administrators 502 Oct 22 13:43 b.c >> drwxr-xr-x 2 Earnie Administrators 0 Oct 23 08:43 c++ >> -rw-r--r-- 1 Earnie Administrators 129 Oct 22 14:32 c.c >> /home/Earnie >> total 4 >> drwxr-xr-x 3 Earnie Administrators 4096 Oct 23 08:43 spud > > I run this eg: > > cd C:\Users\Administrator\Documents\library\libxml2-2.9.0 ; > > or the same with relative path names and I get the error: > > Das System kann den angegebenen Pfad nicht finden. > (The system can not found this path) > LRN gave the reason why this happens, I won't rehash that out. > I can run the command also with unix style path names /c/.... > > The cd command fails all the time if the semicolon is at the end. > If I remove it, the cd will be executated without any errors > Can you create a batch file of the commands that show the cd failing and not failing and attach it to the post back to this list? I'm having a hard time believing that it isn't working with ; and is without. -- Earnie -- https://sites.google.com/site/earnieboyd |