aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2018-11-14 00:11:48 -0500
committerRuss Cox <rsc@swtch.com>2018-11-14 00:13:01 -0500
commitd3f21b709efc5e1ca4c4f0ef58bf9ac5db8e921c (patch)
treeb1ff4868375afa07c4ecf603976f7fd2a0cac176 /src/cmd/9term
parent2ba6fa9a65c82088cde14aa56740d0eea9e38628 (diff)
downloadplan9port-d3f21b709efc5e1ca4c4f0ef58bf9ac5db8e921c.tar.gz
plan9port-d3f21b709efc5e1ca4c4f0ef58bf9ac5db8e921c.tar.bz2
plan9port-d3f21b709efc5e1ca4c4f0ef58bf9ac5db8e921c.zip
9term: make 9term -l invoke $SHELL with -l
Diffstat (limited to 'src/cmd/9term')
-rw-r--r--src/cmd/9term/rcstart.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/9term/rcstart.c b/src/cmd/9term/rcstart.c
index 141b9b00..fddabc6d 100644
--- a/src/cmd/9term/rcstart.c
+++ b/src/cmd/9term/rcstart.c
@@ -34,7 +34,7 @@ int
rcstart(int argc, char **argv, int *pfd, int *tfd)
{
int fd[2], i, pid;
- char *cmd, *xargv[3];
+ char *cmd, *xargv[4];
char slave[256];
int sfd;
@@ -46,6 +46,11 @@ rcstart(int argc, char **argv, int *pfd, int *tfd)
argv[0] = "rc";
argv[1] = "-i";
argv[2] = 0;
+ if(loginshell){
+ argv[2] = "-l";
+ argv[3] = 0;
+ argc = 3;
+ }
}
cmd = argv[0];
if(loginshell){