Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jan 2017 10:13:43 -0500
From:      William Dudley <wfdudley@gmail.com>
To:        byrnejb@harte-lyne.ca, freebsd-questions@freebsd.org
Subject:   Re: Variable assignment in sh
Message-ID:  <CAFsnNZKgz1mwC5b+SCyCrgxNrdpXOcH6REeH4persEAunc4usg@mail.gmail.com>
In-Reply-To: <b831bd9e40321e59910ea8913c7a6302.squirrel@webmail.harte-lyne.ca>
References:  <b831bd9e40321e59910ea8913c7a6302.squirrel@webmail.harte-lyne.ca>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
probably because the default shell in FreeBSD is csh, which uses entirely
different
syntax.

run bash or sh and then try your example.

Bill Dudley

This email is free of malware because I run Linux.

On Tue, Jan 31, 2017 at 10:06 AM, James B. Byrne via freebsd-questions <
freebsd-questions@freebsd.org> wrote:

> Why am I getting this result when I attempt a simple variable
> assignment in the default sh?
>
> # ENV=$HOME/.shrc; export ENV
> ENV=/root/.shrc: Command not found.
> export: Command not found.
>
> This example is taken verbatim from the sh manpage provided with FreeBSD.
>
>
>
> --
> ***          e-Mail is NOT a SECURE channel          ***
>         Do NOT transmit sensitive data via e-Mail
>  Do NOT open attachments nor follow links sent by e-Mail
>
> James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
> Harte & Lyne Limited          http://www.harte-lyne.ca
> 9 Brockley Drive              vox: +1 905 561 1241
> Hamilton, Ontario             fax: +1 905 561 0757
> Canada  L8E 3C3
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAFsnNZKgz1mwC5b+SCyCrgxNrdpXOcH6REeH4persEAunc4usg>