Subject: bin/25403: gzexe prints error msg because sh doen't have typeset
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jukka-netbsd@2004.salmi.ch>
List: netbsd-bugs
Date: 04/30/2004 08:51:06
>Number:         25403
>Category:       bin
>Synopsis:       gzexe prints error msg because sh doen't have typeset
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 30 06:52:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jukka Salmi
>Release:        NetBSD 2.0E
>Organization:
>Environment:
System: NetBSD himo.salmi.ch 2.0E NetBSD 2.0E (GENERIC) #0: Fri Apr 30 00:15:26 CEST 2004 build@himo.salmi.ch:/build/nbsdc/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
/usr/bin/gzexe prints an error message because NetBSD /bin/sh doesn't have
a typeset builtin command as OpenBSDs /bin/sh has.
>How-To-Repeat:
$ gzexe file
typeset: not found
>Fix:
The typeset command (line 30) isn't needed AFAICT.

--- gzexe.orig	2003-12-28 13:43:43.000000000 +0100
+++ gzexe	2004-04-30 08:46:55.000000000 +0200
@@ -27,7 +27,6 @@
 
 # Write the decompression script to stdout
 header () {
-	typeset prog tmp
 	# first section needs variable expansion, second not
 	cat <<- EOF
 		#!/bin/sh -

>Release-Note:
>Audit-Trail:
>Unformatted: