From owner-freebsd-bugs Thu Sep 18 06:00:10 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA04093 for bugs-outgoing; Thu, 18 Sep 1997 06:00:10 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id GAA04050; Thu, 18 Sep 1997 06:00:02 -0700 (PDT) Resent-Date: Thu, 18 Sep 1997 06:00:02 -0700 (PDT) Resent-Message-Id: <199709181300.GAA04050@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, haible@ilog.fr Received: from seagull.cdrom.com (haible@seagull.cdrom.com [204.216.27.14]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id FAA03925 for ; Thu, 18 Sep 1997 05:58:27 -0700 (PDT) Received: (from haible@localhost) by seagull.cdrom.com (8.8.6/8.6.6) id FAA13606 ; Thu, 18 Sep 1997 05:58:28 -0700 (PDT) Message-Id: <199709181258.FAA13606@seagull.cdrom.com> Date: Thu, 18 Sep 1997 05:58:28 -0700 (PDT) From: haible@seagull.cdrom.com Reply-To: haible@ilog.fr To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: haible@ilog.fr X-Send-Pr-Version: 3.2 Subject: bin/4568: /bin/sh substitution/concatenation bug Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4568 >Category: bin >Synopsis: simple /bin/sh script produces wrong results >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 18 06:00:00 PDT 1997 >Last-Modified: >Originator: Bruno Haible >Organization: ILOG >Release: FreeBSD 2.2-STABLE i386 >Environment: >Description: The following /bin/sh commands unset LINGUAS ALL_LINGUAS="en de fr es" NEW_LINGUAS= for lang in ${LINGUAS=$ALL_LINGUAS}; do case "$ALL_LINGUAS" in *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; esac done echo $NEW_LINGUAS print en de fr de fr es instead of en de fr es >How-To-Repeat: Start a sh, then input the above commands. >Fix: unknown >Audit-Trail: >Unformatted: