ceforge.net
> Subject: Re: Need tmux to inherit and pass on environment to a subshell
>
>
>
> I think, ultimately, my problem comes down to not being able to
> configure tmux session or window options during initialization except
> from a configuration file via -f.
>
> The
and pass on environment to a subshell
I think, ultimately, my problem comes down to not being able to
configure tmux session or window options during initialization except
from a configuration file via -f.
The user can't specify options to a new-session or new-window, within
the co
On 2014-06-02 03:53 -0700, Jesse Molina wrote:
> Because a number of my vars have spaces or special characters in them,
> I have to do this nonsense because env output doesn't quote the
> values.
Yeah, bash might not be the best thing to do this. You could for
instance create a custom "env" comman
Because a number of my vars have spaces or special characters in them, I
have to do this nonsense because env output doesn't quote the values.
ONE=1
TWO="2 2"
THREE="3 -3 +3 =3"
EXPORT_VARS="ONE TWO THREE"
echo $(for VAR in $EXPORT_VARS ; do echo "${VAR}=\"${!VAR}\"" ; done) |
tr '\n' ' '
Whi
I think, ultimately, my problem comes down to not being able to
configure tmux session or window options during initialization except
from a configuration file via -f.
The user can't specify options to a new-session or new-window, within
the command itself, until after it has been created, whi
Thanks for the suggestion. This was pretty close to what I was already
doing as a hack.
I have a lot of variables, and many of them have spaces. printenv/env
doesn't output quoted values, so I have to alter the output further from
there and generate a huge command list.
I don't understand why
On 2014-05-31 20:59 -0700, Jesse Molina wrote:
> This first bash script has a number of environmental variables which I
> need to exist in the new-session env to get passed on to the
> application/script in which the new session starts.
You can try passing the current environment to the session's
I have a problem.
I have a bash script which calls tmux to create new sessions, in which
it runs another application or script.
This first bash script has a number of environmental variables which I
need to exist in the new-session env to get passed on to the
application/script in which the n