Example
Code:
#!/bin/bash
export VAR1=dummyvar1
export VAR2=dummyvar2
VAR_FUNC ()
{
export VAR3=dummyvar3
}
konsole -T "test_function"
In the konsole that is started from the script.
Quote:
> env | grep VAR
VAR1=dummyvar1
VAR2=dummyvar2
> VAR_FUNC
bash: VAR_FUNC: command not found
|
If I source the script then the function is found within the terminal where I sourced the script but the konsole that is started from the script doesn't have the function defined.
Is there a work-around for this? If so, then my original question about automatically starting a command in a new konsole is not required.
My actual need is to have the functions defined in the new konsole.
Hope this is making sense.