aboutsummaryrefslogtreecommitdiff
path: root/bin/quote2
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2014-06-03 14:29:06 -0400
committerRuss Cox <rsc@swtch.com>2014-06-03 14:29:06 -0400
commitfbe3f344c14d002316338a38d35f7227e94f2844 (patch)
tree025921b689317f5c05921695dbdcb40dc16e010b /bin/quote2
parent50ababbd552abfa8ef3b16ccdaea54b58f5c031c (diff)
downloadplan9port-fbe3f344c14d002316338a38d35f7227e94f2844.tar.gz
plan9port-fbe3f344c14d002316338a38d35f7227e94f2844.tar.bz2
plan9port-fbe3f344c14d002316338a38d35f7227e94f2844.zip
build: rename " and "" to quote1 and quote2 for hg
They'll be copied back during installation but then hg doesn't have to create those files on systems that have trouble with them. TBR=rsc https://codereview.appspot.com/105800043
Diffstat (limited to 'bin/quote2')
-rwxr-xr-xbin/quote210
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/quote2 b/bin/quote2
new file mode 100755
index 00000000..c77da34d
--- /dev/null
+++ b/bin/quote2
@@ -0,0 +1,10 @@
+#!/usr/local/plan9/bin/rc
+
+cmd = `{" $* | tail -1}
+if (~ $#cmd 0) {
+ echo no such command found >[1=2]
+ exit notfound
+}
+
+echo ' ' $cmd >[1=2]
+rc -c $"cmd