Ladislav Strojil wrote: > On Monday 08 of September 2003 16:12, ne... wrote: > >>On Sep 8, 2003 at 15:53, Ladislav Strojil in a maddening rage wrote: >> >>>On Monday 08 of September 2003 13:52, ne... wrote: >>> >>>>In Linux for to act on files in you would >>>>have to do: >>>> >>>> cd && >>> >>>Why? With "cd ; " both cd and are run within the >>>same shell so the "cd" _does_ change the working directory for command. >> >>I have deleted files I didn't want to when I thought this was the >>case. If the cd fails, do you really want to execute ? > This is only about opening an application program, not about Bash commands in general. So, the answer is YES, you want to open the application even if the 'cd' fails. > > Oh, I see. So slightly more explicit wording would be: > >>In Linux for TO ACT ONLY ON FILES THAT IN you would >>have to do: >>cd && > Which is not the case here. > > But I get your point. :-) You're right. > No he isn't. This is only about the limited context of opening an application with a 'desktop' file. Perhaps if he had read the whole thread before he answered rather than ... . "&&" is correctly used when command need to be dependent on the previous command. This is not the case here. -- JRT >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<