diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-30 20:42:27 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-30 20:42:27 +0000 |
commit | 7a7b7a1c1acfb0f72a55a542580bffe50b93f565 (patch) | |
tree | 9e9d94a8b8c05a3a8e78e478cb601924ef5f4be4 | |
parent | cc87b4d12efd621391eefd274313b954da97feb2 (diff) | |
download | irssi-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.conf | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}'"; +"; }; |