ash support

82 views
Skip to first unread message

slthomason

unread,
Jun 29, 2012, 5:56:06 AM6/29/12
to ticktick...@googlegroups.com
Hi there,

I am very interested in using ticktick.sh.  However, I am having a problem when running it on OpenWRT --> a distro that uses Busybox / ash (not bash).

I replaced the first line:

#!/usr/bin/env bash 

to be:

#!/bin/sh

But when I try to run it, I get this:

# ./ticktick.sh
./ticktick.sh: line 332: syntax error: bad substitution

That is referring to this:

__tick_runtime_length() { echo $#; }
__tick_runtime_first() { echo ${!1}; }
__tick_runtime_last() { eval 'echo $'${!#}; }
__tick_runtime_pop() { eval unset ${!#}; }

Any ideas?  Thanks!

Chris McKenzie

unread,
Aug 22, 2012, 8:49:07 PM8/22/12
to ticktick...@googlegroups.com
Ok, I finally apt-get installed ash and looked at it.  This is not happening any time soon, sorry; it's a subset of bash; maybe a proper one, but a subset nonetheless.  Things like "." and "source" aren't supported, nor are (( style fors and a few other things.  I'm not saying it's not possible in dash, I'm just saying that it's not a small impact change.  How important is this?
Reply all
Reply to author
Forward
0 new messages