#!/usr/bin/env bash cd "${0%/*}" cat </dev/null 2>&1 [[ "$?" -ne 1 ]] && echo "mo accepted a non existent file"