Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Feb 2017 16:20:41 -0500
From:      "James B. Byrne" <>
To:        "Warren Block" <>
Subject:   Re: Variable assignment in sh
Message-ID:  <>
In-Reply-To: <>
References:  <> <> <> <> <> <>

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      
Harte & Lyne Limited
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: <>