Comment Comment by rasguanabana An alternative to just exporting a variable is to prepend it to the command. This will keep it unexported for subsequent calls in current shell.var=value some_commandThis will still show up in /proc, but a lot of internal tools often rely on environment variables, so it’s kind of inevitable. parent rasguanabana 9 months ago
var=value some_command
This will still show up in /proc, but a lot of internal tools often rely on environment variables, so it’s kind of inevitable.