import io


def script_read(filename):
    """Read a shell script from a file.

    :param ``str`` filename:
        File to read from.
    :returns ``unicode``:
        Script read from the file.
    """
    with io.open(filename, 'r') as f:
        script = f.read()
    return script