From owner-freebsd-bugs Fri Jul 19 06:10:08 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25268 for bugs-outgoing; Fri, 19 Jul 1996 06:10:08 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA25257; Fri, 19 Jul 1996 06:10:05 -0700 (PDT) Resent-Date: Fri, 19 Jul 1996 06:10:05 -0700 (PDT) Resent-Message-Id: <199607191310.GAA25257@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, zgabor@code.hu Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA24901 for ; Fri, 19 Jul 1996 06:06:46 -0700 (PDT) Received: by mail.EUnet.hu, id PAA27980; Fri, 19 Jul 1996 15:06:38 +0200 Received: from zg.CoDe.hu by CoDe.CoDe.hu (OAA00189); Fri, 19 Jul 1996 14:46:18 GMT Received: (from zgabor@localhost) by zg.CoDe.hu (8.6.12/8.6.12) id PAA00312; Fri, 19 Jul 1996 15:08:11 +0200 Message-Id: <199607191308.PAA00312@zg.CoDe.hu> Date: Fri, 19 Jul 1996 15:08:11 +0200 From: Zahemszky Gabor Reply-To: zgabor@code.hu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1403: sh(1) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1403 >Category: bin >Synopsis: sh(1) >Confidential: yes >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 19 06:10:03 PDT 1996 >Last-Modified: >Originator: Zahemszky Gabor >Organization: >Release: FreeBSD 2.1.0-RELEASE i386 >Environment: 2.1R from Walnut Creek CD >Description: The sh(1) cannot handle some variable expansion, described in the manual: ${#var}, ${var#expr}, ${var##expr}, ${var%expr}, ${var%%expr} >How-To-Repeat: echo ${#PATH} echo ${PATH#*:} echo ${PATH##*:} echo ${PATH%:*} echo ${PATH%%:*} All of them generate: Syntax error: Bad substitution >Fix: >Audit-Trail: >Unformatted: