[6251] in Athena Bugs

home help back first fref pref prev next nref lref last post

csh environment variable problems

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Sat Oct 20 07:52:33 1990

Date: Sat, 20 Oct 90 07:52:19 -0400
From: Ken Raeburn <Raeburn@MIT.Edu>
To: bugs@ATHENA.MIT.EDU


% cat /tmp/foo
#!/bin/sh
exec echo foo
% /tmp/foo
foo
%

Okay so far.  Now things get interesting....

% setenv 1 2
% /tmp/foo
1=2: is not an identifier
% unsetenv 1
% /tmp/foo
foo
% setenv 'hello there'
% /tmp/foo
hello there=: is not an identifier
% unsetenv 'hello there'
% /tmp/foo
hello there=: is not an identifier
% printenv
[...stuff...]
hello there=
%

Problem 1: The variables that break sh scripts should probably be
disallowed.

Problem 2: I shouldn't be able to set a variable that I cannot unset.

home help back first fref pref prev next nref lref last post