NetBSD-Bugs archive

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

PR/55526 CVS commit: [netbsd-9] src/bin/sh



The following reply was made to PR bin/55526; it has been noted by GNATS.

From: "Martin Husemann" <martin%netbsd.org@localhost>
To: gnats-bugs%gnats.NetBSD.org@localhost
Cc: 
Subject: PR/55526 CVS commit: [netbsd-9] src/bin/sh
Date: Thu, 27 Aug 2020 09:15:39 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Thu Aug 27 09:15:39 UTC 2020
 
 Modified Files:
 	src/bin/sh [netbsd-9]: exec.c
 
 Log Message:
 Pull up following revision(s) (requested by kre in ticket #1064):
 
 	bin/sh/exec.c: revision 1.54
 
 PR bin/55526
 
 Fix a bug that has existed since the "command" command was added in
 2003.   "command foo" would cause the definition of a function "foo"
 to be lost (not freed, simply discarded) if "foo" is (in addition to
 being a function) a filesystem command.   The case where "foo" is
 a builtin was handled.
 
 For now, when a function exists with the same name as a filesystem
 command, the latter can never appear in the command hash table, and
 when used (which can only be via "command foo", just "foo" finds
 the function) will always result in a full PATH search.
 
 XXX pullup everything (from NetBSD 2.0 onwards).   (really -8 and -9)
 
 
 To generate a diff of this commit:
 cvs rdiff -u -r1.53 -r1.53.2.1 src/bin/sh/exec.c
 
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.
 


Home | Main Index | Thread Index | Old Index