On Thu, 25 May 2000, Ray Olszewski wrote about, Re: curious:
> At 11:02 PM 5/25/00 +0000, Richard Adams wrote [in part]:
> >On Thu, 25 May 2000, Ray Olszewski wrote about, Re: curious:
> >> Actually, the action appears to be inconsistent. If I run it several times
> >> (leaving off the nasty bit at the end that executes the command), here is
> >> what I actually get:
> ...
> >>> collier:~$ echo xmms>t;cat t|sed s/x/r/|sed s/ms/\ -f\ \\//|sed s/f/rf/>./t
> >> collier:~$ more t
> >
> >You should have gotten the text underneath here above as well i do.
Because i got it on the first time around, however, i do see what you mean,
i do get a blank file sometimes, now this is what i mean about running
multiple seds in one line.
>
> In what sense are you using "should", Richard? I ran this command, and I
> didn't get the text. Period. Reality. The question is not whether this is
> true, but why the first time through is different (at least on some
> systems). Theory has to explain observations, not the other way around.
>
> (BTW, Greg checked again too, and his experience was the same as mine -- the
> first time on his system, the file was blank; subsequent times, it contained
> the text.)
>
> >> So ... the first time I run it, "t" is blank. Subsequent times, it contains
> >> the troublesome "rm -rf". Guesses as to why, anyone?
simply run
echo xmms>t;cat t|sed s/x/r/|sed s/ms/\ -f\ \\//
I get
rm -f /
Like i said, if one runs the commands individually one gets a completly
different story.
BTW;
I am using
GNU bash, version 2.03.0(1)-release (i386-slackware-linux-gnu)
GNU sed version 3.02
> >
> >Dont forget a file called .t is created as well in the PWD.
>
> Not on my system (I just checked). What in that long string of stuff would
> cause the creation of such a file? All I can see is the possibility that you
> mistyped the last part (>.t instead of >./t) in one test.
Nope .t as well as t
Its all in the trickery of the whole dam thing.
All i can say is create a dummy user and run it "as is".
>
>
>
> ------------------------------------"Never tell me the odds!"---
> Ray Olszewski -- Han Solo
> Palo Alto, CA [EMAIL PROTECTED]
> ----------------------------------------------------------------
--
Regards Richard
[EMAIL PROTECTED]
http://people.zeelandnet.nl/pa3gcu/
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.linux-learn.org/faqs