a startswith func that works for dash and bash Patch by eevans for CASSANDRA-4494
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/510689e3 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/510689e3 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/510689e3 Branch: refs/heads/trunk Commit: 510689e3a44addcabc4e505e0ebed88edcee244b Parents: 9fb63a2 Author: Eric Evans <eev...@apache.org> Authored: Fri Aug 10 10:33:12 2012 -0500 Committer: Eric Evans <eev...@apache.org> Committed: Mon Aug 13 09:28:48 2012 -0500 ---------------------------------------------------------------------- conf/cassandra-env.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/510689e3/conf/cassandra-env.sh ---------------------------------------------------------------------- diff --git a/conf/cassandra-env.sh b/conf/cassandra-env.sh index 2928018..6ae28a0 100644 --- a/conf/cassandra-env.sh +++ b/conf/cassandra-env.sh @@ -177,7 +177,7 @@ if [ "x$CASSANDRA_HEAPDUMP_DIR" != "x" ]; then fi -startswith () [ "${1#$2}" != "$1" ] +startswith() { [ "${1#$2}" != "$1" ]; } if [ "`uname`" = "Linux" ] ; then # reduce the per-thread stack size to minimize the impact of Thrift