Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 May 1998 14:58:55 -0700 (PDT)
From:      dima@best.net
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/6557: /bin/sh && IFS
Message-ID:  <199805082158.OAA01692@burka.rdy.com>

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

>Number:         6557
>Category:       bin
>Synopsis:       /bin/sh is broken
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May  8 15:00:01 PDT 1998
>Last-Modified:
>Originator:     Dima Ruban
>Organization:
Best Internet Communications, Inc.
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:

	Doesn't really matter. Any xBSD system.

>Description:

	/bin/sh doesn't work as it supposed to when dealing with $IFS
	variable.

>How-To-Repeat:

	Try to run this script:

	#!/bin/sh
	XXX=/1:/2:/3:
	IFS=:
	echo /0:$XXX

	The expected result should be: "/0 /1 /2 /3"
	However, with current /bin/sh it's: "/0:/1 /2 /3"

>Fix:
	
	Don't have one.

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



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