From owner-freebsd-questions@freebsd.org Tue Jan 31 15:13:45 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1DBA5CCA60F for ; Tue, 31 Jan 2017 15:13:45 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: from mail-yb0-x22e.google.com (mail-yb0-x22e.google.com [IPv6:2607:f8b0:4002:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CF7E46D9 for ; Tue, 31 Jan 2017 15:13:44 +0000 (UTC) (envelope-from wfdudley@gmail.com) Received: by mail-yb0-x22e.google.com with SMTP id o65so35814462ybo.2 for ; Tue, 31 Jan 2017 07:13:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hF8pSkGWPD3TEmMxwkrlDKx8jxq0WQX/vbeVPvuc6z4=; b=K2r+OMSNXhpcS4QFPhlCMt36gBdMifaCRXPAhxobS3yVIdvSR4FSOLwekyJJfIPNb2 ylQ+d8WYdiMgQc/OA+JPY4Na97gmHKAuDylOTAUT634lW677hwobUZ3+5nsQGjKZN+Fr 1tgF51hkRMvrVyQ8f8ZgD9rf/+zKxOCf+lrPHFiUSvWKMUPiSHsV0eW4ioQmtD5DhqCq kK4R14j6yA0ksfi4Dttd1avG54Svq3kqXw1tiTNBaFjxMdhcA8TKjorrdJnODYC5geQm PFKAfQiw8DJI+D3RXxGlwSpZpfhN9KsUS4Zh1lZz1b3ir7x1fLCebefcL54IkPx32w2z 4YZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=hF8pSkGWPD3TEmMxwkrlDKx8jxq0WQX/vbeVPvuc6z4=; b=rCwgZIY/n+x8H71JmQnOJnbuUhGkFQFmSfeWuh1WRgMnX3NkDxxv2zZy4UE8VtTgfC cHjHQhN+XkKc7Uzbxl7F6UbmbvAqHLf7IvYsQAlENCS7lYS0rHy9pmeNFzuh8V+qKYJB l9Y2sUWq15RMY0Nzi9GfcY/zflCnnpCMu6cDYwKlabnGn/MZicyGpwpzn7j27pgYcVT0 w/pnXmF8iV2/cT+ThACXpDxr344BGX9P8jT+bXO5wCPe8adnW/IjhuYu/VjYtVSyIOjL Z4kDD13oXLZQKpuL5vsgkajvciEvw5sz94fV5Gko+q/HbE5sy41vkF12RYqYznTnxBpF Rf4Q== X-Gm-Message-State: AIkVDXLFkj4iRm/2cROqgPnwBiYSMA5PrH66DSdrUFvkda5mb7lflT3dCX6Tg8ECmppK2DykcsPTb4gPiEZ5aA== X-Received: by 10.129.72.13 with SMTP id v13mr18933515ywa.22.1485875623930; Tue, 31 Jan 2017 07:13:43 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.64.65 with HTTP; Tue, 31 Jan 2017 07:13:43 -0800 (PST) In-Reply-To: References: From: William Dudley Date: Tue, 31 Jan 2017 10:13:43 -0500 Message-ID: Subject: Re: Variable assignment in sh To: byrnejb@harte-lyne.ca, freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 15:13:45 -0000 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" >