Debian bug report logs - #1757 Bash doesn't quote correctly Package: bash ; Reported by: david@elo.ods.com (David Engel); 7 days old. ----------------------------------------------------------------------- Message received at debian-bugs: From elo.ods.com!david Tue Oct 24 12:33:55 1995 Return-Path: Received: from pixar.com by mongo.pixar.com with smtp (Smail3.1.28.1 #15) id m0t7p6h-000BFSC; Tue, 24 Oct 95 12:33 PDT Received: from elo.ods.com ([192.94.73.20]) by pixar.com with SMTP id AA21315 (5.67b/IDA-1.5 for debian-bugs-pipe@mongo.pixar.com); Tue, 24 Oct 1995 12:32:56 -0700 Received: by elo.ods.com id (Debian /\oo/\ Smail3.1.29.1 #29.33); Tue, 24 Oct 95 14:33 CDT Message-Id: From: david@elo.ods.com (David Engel) Subject: Bash doesn't quote correctly To: debian-bugs@pixar.com Date: Tue, 24 Oct 1995 14:33:06 -0500 (CDT) X-Mailer: ELM [version 2.4 PL24 PGP2] Content-Type: text Content-Length: 928 Package: bash Version: 1.14.4-5 Bash doesn't quote correctly in some cases. Here is a test case which exhibits the problem: ---start of showbug--- #!/bin/sh ./printargc $0 ${1+"$@"} ---end of showbug--- ---start of printargc--- #!/bin/sh echo 'argc =' $# ---end of printargc--- Running "showbug '1 2'" should result in "argc = 2", but instead results in "argc = 3". This bug is fixed in bash-1.14.5. From the NEWS file: This file documents the bugs fixed between this release, bash-1.14.5, and the last public bash release, 1.14.4. 1. Bugs fixed in Bash ... d. Fixes to the expansion code so that double quotes on the rhs of ${variableOPword} are handled better. This fix is badly needed by some scripts which I run routinely. David --- David Engel Optical Data Systems, Inc. david@ods.com 1101 E. Arapaho Road (214) 234-6400 Richardson, TX 75081 ----------------------------------------------------------------------- Acknowledgement sent to david@elo.ods.com (David Engel) : New bug report received and forwarded. Full text available. ----------------------------------------------------------------------- Report forwarded to debian-devel@pixar.com : Bug#1757 ; Package bash . Full text available. ----------------------------------------------------------------------- Ian Jackson / iwj10@thor.cam.ac.uk , with the debian-bugs tracking mechanism This page last modified 07:43:01 GMT Wed 01 Nov