<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Up to recently I'd do a sync;sync;shutdown [parameters]...<br>
<br>
Glenn Steen wrote:
<blockquote cite="mid223f97700602080811o1adee9c9j@mail.gmail.com"
type="cite">
<pre wrap="">On 08/02/06, Tim Sailer <a class="moz-txt-link-rfc2396E" href="mailto:sailer@bnl.gov"><sailer@bnl.gov></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Wed, Feb 08, 2006 at 12:08:19PM +0100, Glenn Steen wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 07/02/06, Tim Sailer <a class="moz-txt-link-rfc2396E" href="mailto:sailer@bnl.gov"><sailer@bnl.gov></a> wrote:
(snip)
</pre>
<blockquote type="cite">
<pre wrap="">for file in `echo *`
</pre>
</blockquote>
<pre wrap="">(snip)
Tim, just curious... Why do you go the "long route around" backticks
and an echo, just to use the same shell "wildcarding" mechanism as a
single "*" would give you?
That cannot be necessary... Just use an * and you'll be fine... As in
...
for file in *
do
</pre>
</blockquote>
<pre wrap="">Well, yes, for the most part. I guess I'm just showing my age, unix-wise.
Back in the good old days with the standard Bourne shell, globbing didn't
quite work like the present.
</pre>
</blockquote>
<pre wrap=""><!---->In the far reaches of my memory, I do beleive you might be right:-).
Not so any more though;).
</pre>
<blockquote type="cite">
<pre wrap="">Plus, * by itself means a lot of things to
the shells.
</pre>
</blockquote>
<pre wrap=""><!---->Not really;).
</pre>
<blockquote type="cite">
<pre wrap="">Evaling the results of the 'echo -n' and '-n' by itself may
have different results, if a file was created with the name '-n'.
</pre>
</blockquote>
<pre wrap=""><!---->Again, not really, at least not any more... If you're after
"pathifying" them, using ./* or a find would do the trick (only real
way of defeating "option-like" filenames)... Otherwise the -n filename
would be lost to the echo.
</pre>
<blockquote type="cite">
<pre wrap="">Habit, I guess. After all these years, that sequence just flows off
my fingertips...
</pre>
</blockquote>
<pre wrap=""><!---->
I'm sure I do my share of "old crud typing" too... For years (hm, more
like "decade(s)", come to think of it) I was guilty of "the tripple
sync before shutdown" on systems that simply didn't need them...:-)
Thanks for the answer.
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Alex Neuman van der Hans
N&K Technology Consultants
Tel. +507 214-9002 - <a class="moz-txt-link-freetext" href="http://nkpanama.com/">http://nkpanama.com/</a></pre>
</body>
</html>