This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: bash: setenv: command not found


Today, Jeff Lu wrote:
> $ info --file /usr/info/bash
> info: /usr/info/bash: No such file or directory

iirc Corinna just recently added / was asked to add
that file, so it's not too surprising it failed for you.

> BTW, what is
> FOO=bar' and `unset FOO'.

the answers to your question.

setenv/unsetenv are commands that are built into the csh family
of shells. Under bash the equivalent built ins are export and
unset. For example:

CSH:  setenv name value
BASH: export name=value

CSH:  unsetenv name
BASH: unset name

<soapbox>
yes, this is a stupid naming convention, and it's one
of the things I hate the most about shells... every one
has a different version, and different syntax. There
needs to be ONE standard, and I'm sorry to say BASH's
answer isn't an answer; here csh got it right.
</soapbox>

-- 
now the forces of openness have a powerful and
  unexpected new ally - http://ibm.com/linux


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]