#!/bin/bash

function foo()
{
    local rc=$(/bin/foo)
    return $rc
}

function bar()
{
    local rc
    rc=$(/bin/foo)
    return $rc
}

foo
echo "foo rc=$?"
bar
echo "bar rc=$?"
Add file to test local keyword and show how it can hide errors
Add file to test local keyword and show how it can hide errors
