env command can be used to print environment variables in bash. I want to ask if there is any built-in command to do this ?
$ export temp="hello world" $ env | grep temp
The second command will indeed print
temp's value, but that's because it is inherited as environment when
env was spawned. I want to check what environment variables the bash shell process had originally, in which
temp would still not be part of environment , but just marked to be exported as environment for any child (I want to test this).