Any Bash features you'd like to see?

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Thu May 12 14:56:54 UTC 2005


On Thu, 12 May 2005, Lennart Sorensen wrote:

>> That implies mutual locking to prevent writing garbage into the file,
>> and a different format of the file (to id the writing shell - otherwise
>> backtracking on a session set is impossible).
>
> If you don't care about order, you just need locking to prevent
> simultanious writes.  That's good enough for most cases.

The purpose of having a log is to be able to backtrack. That implies 
order is important. One could have a record format similar to the log 
file entries a la '${time}(${pid}): line \n' but the writes must be done 
line-locked or they will be interspersed with output from other shells.

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list