Using non-standard features in scripts with '#!/bin/sh' shebang can lead to portability issues and unexpected behavior, even when '/bin/sh' is symlinked to bash. To fix this, either change the shebang to '#!/usr/bin/env' bash or rewrite the script using only POSIX-compliant features.