Skip to Content.
Sympa Menu

sm-commit - Re: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (e541968349f5b85e4be5bfc9ba8e65bf4534d827)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: "Remko van der Vossen" <wich AT stack.nl>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: Re: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (e541968349f5b85e4be5bfc9ba8e65bf4534d827)
  • Date: Mon, 10 Nov 2008 13:47:46 +0100 (CET)

> Thomas Orgis (thomas-forum AT orgis.org) wrote [08.11.10 07:16]:
>> Am Sun, 9 Nov 2008 23:11:53 -0500
>> schrieb flux <flux AT sourcemage.org>:
>>
>> > Example: cat FILE | sed -e 's/something/ELSE/' > FILE
>>
>> I'm quite sure that this would empty FILE before opening it for cat ...
>
> Now I'm getting paranoid. I didn't think this would work yesterday
> either, but I actually ran this on my machine, and it worked. However,
> trying it again today shows that it doesn't work, and that FILE is now
> empty. I checked my bash history, and I didn't see anything different in
> what I was doing. I have no idea how I got this to work yesterday, and
> I'm sure I must have done something else, but whatever I did must not be
> in my bash history :(

Isn't it just a matter of which process gets to the critical point (i.e.
reading the file for the cat and opencreat for the sed) first, depending
on scheduling?

Remko.




Archive powered by MHonArc 2.6.24.

Top of Page