comparison bin/example/args.sh @ 412:5bee5c55a7a0

args test + bash overrides hg safety
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 04 Aug 2013 22:59:52 -0700
parents
children
comparison
equal deleted inserted replaced
411:9d6e7a471fc7 412:5bee5c55a7a0
1 #!/bin/bash
2
3 function foo {
4 echo '$*'="$*"
5 echo '$@'="$@"
6 echo '$#'="$#"
7 if [[ "$*" == "test string" ]]
8 then
9 echo '$*' == "test string"
10 if [[ "$@" == "test string" ]]
11 then
12 echo '$@' == "test string"
13 else
14 echo '$@' != "test string"
15 fi
16 fi
17 }