Skip to content

Commit

Permalink
fixed symbolic link dereference when launching shell
Browse files Browse the repository at this point in the history
Without this if we pty.spaw with cwd beeing a symbolic link,
then actually shell will be opened with cwd dereferenced.
  • Loading branch information
vvavrychuk committed Oct 30, 2017
1 parent 8085eae commit 9a9c734
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unixTerminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class UnixTerminal extends Terminal {
}

const cwd = opt.cwd || process.cwd();
env.PWD = cwd
const name = opt.name || env.TERM || DEFAULT_NAME;
env.TERM = name;
const parsedEnv = this._parseEnv(env);
Expand Down

0 comments on commit 9a9c734

Please sign in to comment.