command spooling tangent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 4 Aug 2005 12:16:12 +0100
Glynn Clements <glynn@xxxxxxxxxxxxxxxxxx> wrote:

> 
> I find it far more common for scripts to use ";" when they really
> should have used "&&" than the converse. A particularly common case
> is "cd foo ; dosomething"; this should almost always be using "&&".
> 

guilty as charged :-)  Try for example, the old standard:
     tar -cf - * | ( cd targetdir; tar -xf - )
where targetdir doesn't actually exist.   I don't THINK anything
bad happened when I did this, but I haven't actually looked
at all the images I was trying to move either. 

Jim Roy
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux