9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] blank line in /lib/ndb/local
Date: Mon,  9 Nov 2015 19:02:08 -0800	[thread overview]
Message-ID: <afd634402abee8c7c26677044f2bf527@bwc> (raw)
In-Reply-To: <E9DE4699-F38C-4279-BC7C-1B8475FDF876@ar.aichi-u.ac.jp>

On Mon Nov  9 04:32:24 PST 2015, arisawa@ar.aichi-u.ac.jp wrote:
> Hello,
> 
> manual ndb(6) says: "Each line starting without white space starts a new tuple. Lines starting with # are comments.”
> 
> assume we have an entry such as:
> dom=foo
> 	# a blank line follows
> 
> 	auth=bar
> 
> if the blank line contains a white space, then
> 	ndb/query dom foo auth
> will produce
> 	dom=foo auth=bar
> on the other hand, if the blank line is empty, then the command will produce
> 	dom=foo
> 
> Is this a bug or a specification?
> I want to believe this is a bug.

i can't replicate this:

; cat a.db
dom=fu
	# comment

	auth=bar
; ndb/query -f a.db dom fu
dom=fu 


- erik



  reply	other threads:[~2015-11-10  3:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-09 12:29 arisawa
2015-11-10  3:02 ` erik quanstrom [this message]
2015-11-10  4:01   ` arisawa
2015-11-10  4:05     ` erik quanstrom
2015-11-10  5:07       ` arisawa
2015-11-10  5:14         ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afd634402abee8c7c26677044f2bf527@bwc \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).