summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSigrid <ftrvxmtrx@gmail.com>2020-03-09 13:58:41 +0100
committerSigrid <ftrvxmtrx@gmail.com>2020-03-09 13:58:41 +0100
commit446e454c5a19d1ce2e8da699686159b3a31e8bc7 (patch)
tree28857c0f5a6d20b8952da434506ec791e18c0c53
parent290c921d1d01119b7d4550770da06c491508508f (diff)
downloadplan9front-446e454c5a19d1ce2e8da699686159b3a31e8bc7.tar.xz
sam: ^ does not need current file
-rw-r--r--sys/src/cmd/sam/cmd.c2
-rw-r--r--sys/src/cmd/sam/xec.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/sam/cmd.c b/sys/src/cmd/sam/cmd.c
index 6e8efa094..6d56d268e 100644
--- a/sys/src/cmd/sam/cmd.c
+++ b/sys/src/cmd/sam/cmd.c
@@ -35,7 +35,7 @@ Cmdtab cmdtab[]={
'>', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
'<', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
'|', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
- '^', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
+ '^', 0, 0, 0, 0, aNo, 0, linex, plan9_cmd,
'_', 0, 0, 0, 0, aDot, 0, linex, plan9_cmd,
'=', 0, 0, 0, 0, aDot, 0, linex, eq_cmd,
'c'|0x100,0, 0, 0, 0, aNo, 0, wordx, cd_cmd,
diff --git a/sys/src/cmd/sam/xec.c b/sys/src/cmd/sam/xec.c
index 9493d54fc..c53bedb8b 100644
--- a/sys/src/cmd/sam/xec.c
+++ b/sys/src/cmd/sam/xec.c
@@ -26,7 +26,7 @@ cmdexec(File *f, Cmd *cp)
if(f && f->unread)
load(f);
if(f==0 && (cp->addr==0 || cp->addr->type!='"') &&
- !utfrune("bBnqUXY!", cp->cmdc) &&
+ !utfrune("bBnqUXY!^", cp->cmdc) &&
cp->cmdc!=('c'|0x100) && !(cp->cmdc=='D' && cp->ctext))
error(Enofile);
i = lookup(cp->cmdc);