Actions
Bug #1434
closed[PATCH] sh(1): Implement $LINENO built-in variable
Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Description
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.
Files
Actions