Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 1998 00:25:29 +0200 (CEST)
From:      Stefan `Sec` Zehl <sec@42.org>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7283: tcsh / LC_CTYPE - obscure problem.
Message-ID:  <199807142225.AAA01826@matrix.42.org>

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

>Number:         7283
>Category:       ports
>Synopsis:       tcsh / LC_CTYPE - obscure problem.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 14 15:30:01 PDT 1998
>Last-Modified:
>Originator:     Stefan `Sec` Zehl
>Organization:
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:

FreeBSD-stable as of a few days ago.

FreeBSD matrix 2.2.6-STABLE FreeBSD 2.2.6-STABLE #0: Thu Apr  2 02:59:18 CEST 1998     root@matrix:/usr/src/sys/compile/MATRIX  i386

Tcsh as installed from /usr/ports:

matrix:~>tcsh -c 'echo $version'
tcsh 6.07.02 (Astron) 1996-10-27 (i386-intel-FreeBSD) options 8b,nls,dl,al,rh

matrix:~>pkg_info -aI|grep tcsh
tcsh-6.07.02        An extended C-shell with many useful features.

	

>Description:

tcsh produces obscure error-message when sourcing an shell-script which
contains an 'setenv LC_CTYPE'.

The problem does not exist in interactive mode.

>How-To-Repeat:

	

	
# start fresh tcsh without sourcing any startup-scripts.
matrix:~>tcsh -f

# This is our test-script. Problem does also appear with system-wide
# /etc/csh.login file
> cat /tmp/test
setenv LC_CTYPE foo

# We source it, it emits an error-message.
> source /tmp/test
^E¢@^Ò@x@^Z^ALoad: Command not found.
^A^FÌALAÊ@^Â^HERROR:: Too many arguments.

# This is repeatable.
> source /tmp/test
^E¢@^Ò@x@^Z^ALoad: Command not found.
^A^FÌALAÊ@^Â^HERROR:: Too many arguments.

# In interactive mode, this doesn't happen.
> setenv LC_CTYPE foo

# After interactive test, sourcing doesn't emit an error message any more.
> source /tmp/test

# That's it.
> exit

>Fix:

none known.
>Audit-Trail:
>Unformatted:

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



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