view bin/example/args.sh @ 565:7b70e5c0d410

fn -> xclip
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 25 Dec 2013 15:31:28 -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
}