

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 (cmdline 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/VarMisuse@42/73 `k`->`cmdline`