tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ line-up a string with bash

problems using printf !! ▻

How to pass back the array value?

In article <sb6dm8csr2a36@corp.supernews.com>,
brian hiles  <bsh@rainey.blueneptune.com> wrote:
>Ralf Draeger <Ralf.Draeger@Intraplan.de> wrote:
>> You can't modify the shellenvironment from within your c program. The only
>> method I know is to printf your array from your program.
>
>Nonsense. I answered this question not two weeks ago. Consult deja.com
>to see my archived response.

If you're referring to <sam89v6u2pd24@corp.supernews.com>, this (as I'm
sure you know) starts a new shell with the modified environment.  Ralf
is quite correct: a program (whether binary or script) cannot modify the
environment of its invoking shell.

Tim.
--
Tim Goodwin   | "If you don't know what closures are, you probably don't
Leicester, UK | want to know what closures are." -- Larry Wall

Original headers:

From: tjg@star.le.ac.uk (Tim Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: How to pass back the array value?
Date: 24 Feb 2000 15:28:49 -0000
Message-ID: <893io7$1bk$1@ltpcg.star.le.ac.uk>
References: <38B235C3.433759BA@gdc.lucent.com>
  <38B24FF5.67CE2DF6@Intraplan.de> <sb6dm8csr2a36@corp.supernews.com>

△ comp.unix.shell △

◅ line-up a string with bash

problems using printf !! ▻