Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Jul 1996 15:08:11 +0200
From:      Zahemszky Gabor <zgabor@code.hu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1403: sh(1)
Message-ID:  <199607191308.PAA00312@zg.CoDe.hu>
Resent-Message-ID: <199607191310.GAA25257@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607191308.PAA00312>