I try to understand why the following code fails. First I invoke a bash-function with
smb_read $SMB_FILE $SMB_CONF
The function is simple
function smb_read {
  2="$(cat $1)"
  case $? in
    0) ;;
    *) return 1 ;;
  esac
}
The result is
func.sh: line 52: 2=[global]
workgroup = smb
security = user
...
public = no
writeable = no
guest ok = no
create mask = 0600
directory mask = 0700: No such file or directory
Why is that?
