From nobody@FreeBSD.org  Sun Oct 15 10:00:28 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id EBAE416A407
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Oct 2006 10:00:27 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8307A43D45
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Oct 2006 10:00:27 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9FA0Rtt070626
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 15 Oct 2006 10:00:27 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k9FA0R3K070625;
	Sun, 15 Oct 2006 10:00:27 GMT
	(envelope-from nobody)
Message-Id: <200610151000.k9FA0R3K070625@www.freebsd.org>
Date: Sun, 15 Oct 2006 10:00:27 GMT
From: martinko <gamato@users.sf.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: No mention of "let" shell builtin in manual pages.
X-Send-Pr-Version: www-3.0

>Number:         104432
>Category:       bin
>Synopsis:       sh(1): remove undocumented "exp" and "let" builtins
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jilles
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 15 10:00:34 GMT 2006
>Closed-Date:    
>Last-Modified:  Fri May 27 21:00:20 UTC 2011
>Originator:     martinko
>Release:        FreeBSD 6.2-PRERELEASE
>Organization:
>Environment:
FreeBSD mb-aw1n-bsd 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sat Sep 23 10:05:07 CEST 2006     root@mb-aw1n-bsd:/usr/obj/usr/src/sys/MB-AW1N  i386
>Description:
There is no mention of `let` shell built-in neither in sh(1) nor builtin(1) man pages.
>How-To-Repeat:
Check above mentioned manual pages.
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Wed Nov 15 11:29:26 UTC 2006 
Responsible-Changed-Why:  
Over to me, I'm investigating. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104432 

From: martinko <gamato@users.sf.net>
To: bug-followup@FreeBSD.org
Cc: trhodes@FreeBSD.org
Subject: Re: docs/104432: No mention of "let" shell builtin in manual pages.
Date: Sat, 25 Aug 2007 01:33:40 +0200

 FreeBSD-gnats-submit@FreeBSD.org wrote:
 > Thank you very much for your problem report.
 > It has the internal identification `docs/104432'.
 > The individual assigned to look at your
 > report is: freebsd-doc. 
 >
 > You can access the state of your problem report at any time
 > via this link:
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=104432
 >
 >   
 >> Category:       docs
 >> Responsible:    freebsd-doc
 >> Synopsis:       No mention of "let" shell builtin in manual pages.
 >> Arrival-Date:   Sun Oct 15 10:00:34 GMT 2006
 >>     
 >
 >
 >   
 
 To whom it may concern,
 
 Please note that my email address which I used when submitting 
 docs/104432 has expired.
 Please update my email address if possible so that I can receive further 
 follow ups on this PR.
 
 Thank you,
 
 Martin

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, martinko <gamato@users.sf.net>
Cc:  
Subject: Re: docs/104432: No mention of "let" shell builtin in manual pages.
Date: Sat, 10 Apr 2010 22:28:43 +0200

 I'd like to keep the "let" builtin undocumented because it may be
 removed in the future. It is non-standard and not very useful, and
 behaves differently from ksh's let builtin (which is itself deprecated
 in favour of the ((EXPRESSION)) syntax).
 
 If let's return value is not used, something like
   VAR=$(let EXPRESSION)
 is equivalent to
   VAR=$((EXPRESSION))
 except that errors in the expression are fatal and quoting special
 characters is not needed in the latter case.
 
 If let's return value is used, something like
   if let EXPRESSION >/dev/null
 can be replaced by
   if [ $((EXPRESSION)) -ne 0 ]
 with similar differences.
 
 -- 
 Jilles Tjoelker
Responsible-Changed-From-To: trhodes->jilles 
Responsible-Changed-By: jilles 
Responsible-Changed-When: Sun Apr 25 21:24:52 UTC 2010 
Responsible-Changed-Why:  
I'd like to remove "exp" and "let" at some point, but probably not any time soon. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=104432 

From: Jilles Tjoelker <jilles@stack.nl>
To: bug-followup@FreeBSD.org, gamato@users.sf.net
Cc:  
Subject: Re: bin/104432: sh(1): remove undocumented "exp" and "let" builtins
Date: Wed, 4 May 2011 23:32:49 +0200

 Hi,
 
 > [undocumented sh(1) exp and let builtins]
 
 In an exp-run (bin/156306) it appeared that "let" is close enough to
 bash's and ksh's builtin that a few ports depend on it. Therefore I plan
 to keep "let" in 9.x, perhaps removing it for 10.0. "exp" might be
 removed for 9.0.
 
 I updated the originator address of the PR from gamato@pobox.sk to
 gamato@users.sf.net as requested earlier.
 
 -- 
 Jilles Tjoelker

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/104432: commit references a PR
Date: Fri, 27 May 2011 20:53:20 +0000 (UTC)

 Author: jilles
 Date: Fri May 27 20:53:07 2011
 New Revision: 222386
 URL: http://svn.freebsd.org/changeset/base/222386
 
 Log:
   sh: Remove the "exp" builtin.
   
   The "exp" builtin is undocumented, non-standard and not very useful.
   
   If exp's return value is not used, something like
   VAR=$(exp EXPRESSION)
   is equivalent to
   VAR=$((EXPRESSION))
   except that errors in the expression are fatal and quoting special
   characters is not needed in the latter case.
   
   If exp's return value is used, something like
   if exp EXPRESSION >/dev/null
   can be replaced by
   if [ $((EXPRESSION)) -ne 0 ]
   with similar differences.
   
   The exp-run showed that "let" is close enough to bash's and ksh's builtin
   that removing it would break a few ports. Therefore, "let" remains in 9.x.
   
   PR:		bin/104432
   Exp-run done by: pav (with some other sh(1) changes)
 
 Modified:
   head/bin/sh/arith_yacc.c
   head/bin/sh/builtins.def
 
 Modified: head/bin/sh/arith_yacc.c
 ==============================================================================
 --- head/bin/sh/arith_yacc.c	Fri May 27 20:34:23 2011	(r222385)
 +++ head/bin/sh/arith_yacc.c	Fri May 27 20:53:07 2011	(r222386)
 @@ -344,7 +344,7 @@ arith_t arith(const char *s)
   *  The exp(1) builtin.
   */
  int
 -expcmd(int argc, char **argv)
 +letcmd(int argc, char **argv)
  {
  	const char *p;
  	char *concat;
 
 Modified: head/bin/sh/builtins.def
 ==============================================================================
 --- head/bin/sh/builtins.def	Fri May 27 20:34:23 2011	(r222385)
 +++ head/bin/sh/builtins.def	Fri May 27 20:53:07 2011	(r222386)
 @@ -60,7 +60,7 @@ echocmd		echo
  evalcmd		-s eval
  execcmd		-s exec
  exitcmd		-s exit
 -expcmd		exp let
 +letcmd		let
  exportcmd	-s export -s readonly
  #exprcmd		expr
  falsecmd	false
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
>Unformatted:
