#!/bin/bash
# adapted from http://steve-parker.org/sh/functions.shtml
myfunct()
{
echo "myfunct was called with : $@"
x=2
y=13
}
echo "Script was called with $@"
x=1
echo "x is $x"
echo "y is $y"
myfunct 1 2 3
echo "x is $x"
echo "y is $y"