NetBSD Problem Report #52172

From  Mon Apr 17 11:38:53 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 41C157A1F5
	for <>; Mon, 17 Apr 2017 11:38:53 +0000 (UTC)
Message-Id: <>
Date: Mon, 17 Apr 2017 11:38:52 +0000 (UTC)
Subject: /bin/ksh crashes on re-executing an alias that adds environment
X-Send-Pr-Version: www-1.0

>Number:         52172
>Category:       bin
>Synopsis:       /bin/ksh crashes on re-executing an alias that adds environment
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 17 11:40:00 +0000 2017
>Originator:     Shingo Nishioka
>Release:        NetBSD 7.1_STABLE
As alias expansion stops if command is alias word itself,
an alias can be used to add environment variable to a simple command.
Re-execute such alias causes /bin/ksh to crash.

add trailing space to aliased command. 
For example:
alias ls='LANG=C ls '

Other implementation:
bash, mksh, ksh93, and zsh are not affected this problem.

$ /bin/ksh
$ alias ls='LANG=C ls'
$ ls
$ fc -e -


NetBSD Home
NetBSD PR Database Search

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