Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 16:20:41 -0500
From:      "James B. Byrne" <byrnejb@harte-lyne.ca>
To:        "Warren Block" <wblock@wonkity.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Variable assignment in sh
Message-ID:  <509f51fbc72e12243ed86f15fb9d60fe.squirrel@webmail.harte-lyne.ca>
In-Reply-To: <alpine.BSF.2.20.1701311445520.54303@wonkity.com>
References:  <b831bd9e40321e59910ea8913c7a6302.squirrel@webmail.harte-lyne.ca> <20170131161824.a9f1ef46.freebsd@edvax.de> <b553c644fccc211f9658b31cfe65e8a0.squirrel@webmail.harte-lyne.ca> <20170131185103.7f911dfb.freebsd@edvax.de> <5f51e2c3bdb8a20c6a7786c2b345c957.squirrel@webmail.harte-lyne.ca> <alpine.BSF.2.20.1701311445520.54303@wonkity.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

On Tue, January 31, 2017 16:51, Warren Block wrote:

>
> It's important to note that shells are two things, an interactive user
> interface, and a shell script interpreter.  Thanks to a rich
> selection,
> one program does not have to be used for both.  For example, I use csh
> along with a large autocompletion file and some aliases and it works
> very well for that.  I would not write scripts for csh, though,
> because
> the built-in script implementation is not great.  Not a problem, since
> just putting #!/bin/sh as the first line of a script causes it to run
> with the standard sh interpreter.
>

I do not alter the root account in any way other that to allow logins
and ssh is configured to only accept passwordless logins for root. 
When I have need to login as root then I run bash from the default
shell and do my work there.

I have dealt with cron by specifying SHELL=/usr/local/bin/bash in
root's crontab.   I am not fond of shell scripts although I have
written many.  Most of what I put into cron jobs are one-liner shell
commands and in my case I have written these for bash.

-- 
***          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




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?509f51fbc72e12243ed86f15fb9d60fe.squirrel>