view bin/example/args.sh @ 631:d87a17e1abac

-> http://k0s.org/hg/TextShaper/rev/e6f680d25d63
author Jeff Hammel <k0scist@gmail.com>
date Sun, 23 Feb 2014 00:49:18 -0800
parents 5bee5c55a7a0
children
line wrap: on
line source

#!/bin/bash

function foo {
 echo '$*'="$*"
 echo '$@'="$@"
 echo '$#'="$#"
 if [[ "$*" == "test string" ]]
 then
     echo '$*' == "test string"
     if [[ "$@" == "test string" ]]
     then
         echo '$@' == "test string"
     else
         echo '$@' != "test string"
     fi
 fi
}