Re: refdbc -C addref & stdin

Michael Smith <[email protected]>
Newsgroups gmane.text.refdb.devel
Message-ID <20031212100505.GA1384@theThirdPoliceman>
Markus Hoenicka <[email protected]> writes:

> Michael Smith writes:
>  > um, has anybody actually had success at adding references to a RefDB
>  > database via the "Add Reference" menu item Emacs?

[...]

> Yes, me.
>  > None of those work for me. My refdbc doesn't seem to be able to read
>  > from standard input at all.
>  > 
> 
> Could it be you're working on Cygwin?

Yeah, sorry, I was when I wrote the message, and just hadn't bothered to
take the time to try it elsewhere. I should have done that before
sending the message.

> The data-waiting-on-stdin autodetection does not work on Cygwin,
> unfortunately, so if you want to do any of the above on Cygwin you
> have to use the -f stdin switch.

Ah, I see that now in the docs.

Will it break behavior on other platforms if I just include the -f stdin
option by default in the set of args that Emacs passes to
refdbc -C addref ? That is, is -f stdin just ignored on platforms that
can already auto detect data on stdin?

Anyway, when I actually try it on Cygwin, it doesn't seem to work -

  $ refdbc -d foo -C addref -f stdin < /tmp/data/alltypes.ris 
  Could not set terminal attributes
  0 dataset(s) added, 0 skipped, 0 failed
  0 dataset(s) sent.

Tried both with v0.9.3 and v0.9.2

It's not a big deal for my testing, because for now I've built a refdbc
binary from source that always reads from stdin no matter what, and set
up my Emacs so it calls that for running addref, rather than calling the
normal refdbc binary.

But for the long term, it would be good to make sure everything's
working on Cygwin as it should.

I also wish I had an OS X environment I could test with directly; seems
like Bruce has found some problems that I haven't seen elsewhere.

  --Mike
signature.asc (application/pgp-signature, 155 B)
-----BEGIN PGP SIGNATURE-----

iD8DBQE/2ZLvsGCNMsnBsxkRAu/3AJ995RZbn1/Pz6CHdYU6dKW91I+4OQCeOmzB
UdrSgGh/MKIldk3N1UInTMU=
=VgNU
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.