def star_shell(cluster, logdir, cmdline, *args):
    '''Drop into a local shell - exit subshell to return with session intact'''
    connections = []
    for k in sorted(cluster.connections.keys()):
        if k not in cluster.disabled:
            connections.append(str(k))

    os.putenv('RADSSH_CONNECTIONS', ' '.join(connections))
    os.system('PS1="(RadSSH subshell) $ " bash')
dataset/ETHPy150Open radssh/radssh/radssh/star_commands.py/star_shell/original