DragonFly bugs List (threaded) for 2009-07
DragonFly BSD
DragonFly bugs List (threaded) for 2009-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Jul 2009 12:03:48 +0000

New submission from Stathis Kamperis <ekamperi@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@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1434>
_____________________________________________________

Attachment: 0001-sh-1-Expand-LINENO-to-the-current-line-number.patch
Description: Binary data



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]