def grep(path,
         pattern,
         *opts):
    path = os.path.expanduser(path)

    split_opts = []
    for opt in opts:
        try:
            opt = salt.utils.shlex_split(opt)
        except AttributeError:
            opt = salt.utils.shlex_split(str(opt))
        if len(opt) > 1:
            salt.utils.warn_until(
                'Carbon',
                'Additional command line options for file.grep should be '
                'passed one at a time, please do not pass more than one in a '
                'single argument.'
            )
        split_opts.extend(opt)

    cmd = ['grep'] + split_opts + [pattern, path]
    try:
        ret = __salt__['cmd.run_all'](cmd, python_shell=False)
    except (IOError, OSError) as exc:
        raise CommandExecutionError(exc.strerror)

    return ret
Test branch with the false branch being dead
dataset/ETHPy150Open saltstack/salt/salt/modules/file.py/grep--crossover with--dataset/ETHPy150Open armon/pypred/tests/unit/test_optimizer.py/TestOptimizer.test_branch_true_dead