[issue1434] [PATCH] sh(1): Implement $LINENO built-in variable

Stathis Kamperis (via DragonFly issue tracker) sinknull at leaf.dragonflybsd.org
Tue Jul 21 05:05:00 PDT 2009


New submission from Stathis Kamperis <ekamperi at gmail.com>:

Salute.

Regarding sh(1):

LINENO
    Set by the shell to a decimal number representing the current sequential
line number (numbered starting with 1) within a script or function before it
executes each command. If the user unsets or resets LINENO , the variable may
lose its special meaning for the life of the shell.

I attach a patch, obtained from FreeBSD, that implements $LINENO.
I'm running a system with the patch applied, but I need to test it more.

Unless no one objects, I'll push it in 161 hours and 48 minutes.

Cheers,
Stathis

PS. I'll also obtain the "Fix checking if a variable name is LINENO." patch as
well (SVN Revision 179387). But first thing first.

----------
assignedto: Beket
files: 0001-sh-1-Expand-LINENO-to-the-current-line-number.patch
messages: 6907
nosy: Beket
priority: feature
status: unread
title: [PATCH] sh(1): Implement $LINENO built-in variable

_____________________________________________________
DragonFly issue tracker <bugs at lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1434>
_____________________________________________________Attachment:
0001-sh-1-Expand-LINENO-to-the-current-line-number.patch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bin00004.bin
Type: application/octet-stream
Size: 4410 bytes
Desc: "Description: Binary data"
URL: <http://lists.dragonflybsd.org/pipermail/bugs/attachments/20090721/59edbf29/attachment-0021.bin>


More information about the Bugs mailing list