NetBSD Problem Report #41761

From www@NetBSD.org  Tue Jul 21 19:03:19 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 248FE63BBD1
	for <gnats-bugs@gnats.netbsd.org>; Tue, 21 Jul 2009 19:03:19 +0000 (UTC)
Message-Id: <20090721190318.C10CE63B898@www.NetBSD.org>
Date: Tue, 21 Jul 2009 19:03:18 +0000 (UTC)
From: ekamperi@gmail.com
Reply-To: ekamperi@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sh(1) doesn't provide the $LINENO builtin variable
X-Send-Pr-Version: www-1.0

>Number:         41761
>Category:       bin
>Synopsis:       sh(1) doesn't provide the $LINENO builtin variable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 21 19:05:00 +0000 2009
>Closed-Date:    Sun Feb 21 22:28:10 +0000 2016
>Last-Modified:  Sun Feb 21 22:28:10 +0000 2016
>Originator:     Stathis Kamperis
>Release:        NetBSD 5.0_STABLE
>Organization:
Aristotle University of Thessaloniki
>Environment:
NetBSD voyager 5.0_STABLE NetBSD 5.0_STABLE (MYGENERIC) #8: Mon Jul  6 19:55:40 EEST 2009  root@voyager:/usr/obj/sys/arch/i386/compile/MYGENERIC i386

>Description:
Quoting from Issue 6:

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. If the shell is not currently executing a script or function, the value of LINENO is unspecified.

http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
>How-To-Repeat:
[stathis@voyager ~] cat lineno.sh 
#!/bin/sh
echo $LINENO
[stathis@voyager ~] ./lineno.sh 

[stathis@voyager ~] 
>Fix:

>Release-Note:

>Audit-Trail:
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/41761 (sh(1) doesn't provide the $LINENO builtin variable)
Date: Mon, 22 Feb 2016 05:18:02 +0700

 ${LINENO} was added some time ago now.  This PR should be closed.

 kre

State-Changed-From-To: open->closed
State-Changed-By: christos@NetBSD.org
State-Changed-When: Sun, 21 Feb 2016 17:28:10 -0500
State-Changed-Why:
added a while ago


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.