DASH Shell discussions
 help / color / mirror / Atom feed
From: Harald van Dijk <harald@gigawatt.nl>
To: dash@vger.kernel.org
Subject: Re: [Partial patch] IFS and read builtin
Date: Wed, 25 Aug 2010 01:40:06 +0200	[thread overview]
Message-ID: <4C745856.6000105@gigawatt.nl> (raw)
In-Reply-To: <20100824225138.GB79263@stack.nl>

On 25/08/10 00:51, Jilles Tjoelker wrote:
> Yes, I think that's the proper way to implement LINENO.
> 
> FreeBSD sh avoids extending the nodes by detecting expansions of LINENO
> at parse time and storing the line number at that time. However, this is
> only possible because it does not print a line number when there is an
> error in a builtin.

I'm curious to try to see how FreeBSD sh handles eval 'echo $LINENO',
then. This will be a nice excuse to give it another try.

> POSIX.1-2008 (aka SUSv4) says, at one point, that the shell shall "use
> the delimiters as field terminators".
[...]

Ah! So something _was_ wrong -- the standard I was reading. That
explains it all, thank you very much.

When I have a more polished and complete LINENO implementation, I'll
post it here.

Cheers,
Harald

  reply	other threads:[~2010-08-24 23:38 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-22 22:20 [Partial patch] IFS and read builtin Harald van Dijk
2010-08-22 23:00 ` Jilles Tjoelker
2010-08-23  0:03   ` Harald van Dijk
2010-08-23 19:35     ` Jilles Tjoelker
2010-08-23 22:51       ` Harald van Dijk
2010-08-24 22:51         ` Jilles Tjoelker
2010-08-24 23:40           ` Harald van Dijk [this message]
2010-09-08  9:10           ` Herbert Xu
2010-09-08 11:53 ` Herbert Xu
2010-09-08 12:08   ` Herbert Xu
2010-10-16 19:15     ` Jonathan Nieder
2010-10-18  2:54       ` Herbert Xu
2010-10-18  3:03         ` Jonathan Nieder
2010-11-07 22:04     ` Jonathan Nieder
2010-11-28 13:10       ` Herbert Xu
  -- strict thread matches above, loose matches on Subject: below --
2010-08-21 19:19 Harald van Dijk

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=4C745856.6000105@gigawatt.nl \
    --to=harald@gigawatt.nl \
    --cc=dash@vger.kernel.org \
    /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