Variable assignment in sh
James B. Byrne
byrnejb at harte-lyne.ca
Wed Feb 1 21:20:45 UTC 2017
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
> 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,
> 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 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
More information about the freebsd-questions