- Subject: Re: [Partial patch] IFS and read builtin
- From: Harald van Dijk <harald@xxxxxxxxxxx>
- Date: Wed, 25 Aug 2010 01:40:06 +0200
- In-reply-to: <20100824225138.GB79263@xxxxxxxx>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.2.8) Gecko/20100814 Lightning/1.0b2pre Lanikai/3.1.2
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
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[LARTC]
[Bugtraq]
[Yosemite Forum]
[Photo]