summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-07-30 20:42:27 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-07-30 20:42:27 +0000
commit7a7b7a1c1acfb0f72a55a542580bffe50b93f565 (patch)
tree9e9d94a8b8c05a3a8e78e478cb601924ef5f4be4
parentcc87b4d12efd621391eefd274313b954da97feb2 (diff)
downloadirssi-7a7b7a1c1acfb0f72a55a542580bffe50b93f565.zip
A bit more portable calc - use awk instead of echo -n
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1692 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r--irssi.conf3
1 files changed, 2 insertions, 1 deletions
diff --git a/irssi.conf b/irssi.conf
index bfdb3ba7..5d30dfd0 100644
--- a/irssi.conf
+++ b/irssi.conf
@@ -64,5 +64,6 @@ aliases = {
CHAT = "dcc chat";
RUN = "SCRIPT LOAD";
UPTIME = "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime: \"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h \"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'";
- CALC = "exec - echo -n '$* = ' && echo 'scale = 3\; $*'|bc";
+ CALC = "exec - echo $* | bc | awk '{print "$* = "\$1}'";
+";
};