Variable assignment in sh
William Dudley
wfdudley at gmail.com
Tue Jan 31 15:13:45 UTC 2017
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 at 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 at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list