command spooling tangent
am 04.08.2005 18:27:50 von jim royOn Thu, 4 Aug 2005 12:16:12 +0100
Glynn Clements
>
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html