Peter van Hardenberg wrote: > On January 13, 2006 03:00 pm, you wrote: > >>On Fri, 13 Jan 2006, Hans Reiser wrote: >> >>>If someone figures out why we can't do it but /proc can, or even fixes >>>it, it would be good. >> >>It wouldn't be something so simple as echo's trailing newline, would it? >> >>-Jonathan > > > Good thought, but no: [...] > [EMAIL PROTECTED]:/home/norbs/reiser/emptydir/..../plugin$ echo "ext-1" -n > > fibration [...] > [EMAIL PROTECTED]:/home/norbs/reiser/emptydir/..../plugin$ irb > irb(main):004:0> f = open('fibration', 'w') > => #<File:fibration> > irb(main):005:0> f.write('ext-1') > => 5 > irb(main):006:0> f.close > => nil > irb(main):007:0> exit [...] > I'd look more closely at how proc does it and how we do it, but I'm too tired > for source digging tonight.
I think the difference is that Reiser expects a null-terminated string, whereas Proc doesn't need the null, and can chop off newlines when needed. So, I think this would also work: echo -en 'ext-1\0' > fibration