Score:0

while invoking 'gnome-terminal' from the terminal , the environment variables of the previous session has a scope in the newly opened terminal

na flag

I have opened a gnome-terminal and did this:

$ export abc=abcd
$ echo $abc 
abcd
$ gnome-terminal

The above commands invoked an another gnome-terminal and tried this:

$ echo $abc
abcd   #I am not expecting this

My question is how to invoke 'gnome-terminal' with default environment variables(same as starting with ctrl+T)

Score:1
ru flag
gnome-terminal --no-environment
sai gokul avatar
na flag
# Failed to parse arguments: Unknown option --no-environment
Aman9das avatar
ru flag
`gnome-terminal -h` shows the various options, isn't there an argument that says "Do not pass the environment"
sai gokul avatar
na flag
There is no argument like that. I checked with 'man' and gnome-terminal --help-all
N0rbert avatar
zw flag
GNOME Terminal 3.42 has this option in [source code](https://codesearch.debian.net/search?q=no-environment+package%3A%5CQgnome-terminal%5CE&literal=1), so we need to know version of gnome-terminal used by OP (@saigokul) .
sai gokul avatar
na flag
GNOME Terminal 3.36.2 on Ubuntu 20.04 LTS
Aman9das avatar
ru flag
Then this feature you want is present in latest gnome-terminal. Update your version to get it :)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.