handle empty env vars - fixed #3217

This commit is contained in:
Eugene Pankov 2021-04-16 20:49:57 +02:00
parent 2cafd97751
commit e277c52f71

View file

@ -167,7 +167,8 @@ export class Session extends BaseSession {
}
if (!pty) {
const env = {
// filter out empty env
const { '': _, ...env } = {
...process.env,
TERM: 'xterm-256color',
TERM_PROGRAM: 'Terminus',