[Techtalk] simple date question

John Clarke johnc+linuxchix at kirriwa.net
Thu Oct 10 04:41:05 UTC 2013


On Wed, Oct 09, 2013 at 04:17:16AM +0000, mgmonza at sdf.lonestar.org wrote:

> Sudo export TZ=America/New_York just gives a command not recognized
> message.

That's because "export VAR=value" is a shell built-in.  It's an
abbreviation of "VAR=value; export VAR" and tells the shell to set VAR,
and to propagate the variable in the environment of any subprocesses it
starts from then on.

There is no way to add variables into the environment of already
runnng processes; variables have to be set by a process or inherited
from its parent.

> That seems to be the best solution - a soft link to the right zone
> file. Thanks for the help on this insignificant but very irritating
> problem.

No problem, happy to help :-)


- John

-- 
That was usually OK, too, as long as you never had to deal with early
Macintosh hardware that looked like a SCSI duck, quacked like a SCSI
duck, but was actually a hairy-nosed wombat with tentacles.
            -- Dan Rutter, http://www.dansdata.com/gz005.htm


More information about the Techtalk mailing list