From owner-cvs-all@FreeBSD.ORG Thu Dec 8 21:00:44 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 952E516A41F; Thu, 8 Dec 2005 21:00:44 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0336243D5F; Thu, 8 Dec 2005 21:00:39 +0000 (GMT) (envelope-from stefanf@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id jB8L0dg7018969; Thu, 8 Dec 2005 21:00:39 GMT (envelope-from stefanf@repoman.freebsd.org) Received: (from stefanf@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jB8L0dxh018968; Thu, 8 Dec 2005 21:00:39 GMT (envelope-from stefanf) Message-Id: <200512082100.jB8L0dxh018968@repoman.freebsd.org> From: Stefan Farfeleder Date: Thu, 8 Dec 2005 21:00:39 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/bin/sh output.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2005 21:00:44 -0000 stefanf 2005-12-08 21:00:39 UTC FreeBSD src repository Modified files: bin/sh output.c Log: Print empty quotes ('') when an empty string is passed to outqstr(). This makes a difference for the trap builtin, where after "trap '' 0" we printed "trap -- quit". This is wrong, because an empty action means to reset the action to the default. A side effect of this commit is that empty variables are now printed as "variable=''" instead of just "variable=". Revision Changes Path 1.20 +4 -0 src/bin/sh/output.c