comparison rvinterf/asyncshell/main.c @ 965:bd873572ef2c

fc-shell: one-shot command mode implemented
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Sat, 07 Nov 2015 00:00:46 +0000
parents 5e46679bdb6a
children
comparison
equal deleted inserted replaced
964:373af5f74e39 965:bd873572ef2c
67 exit(1); 67 exit(1);
68 } 68 }
69 connect_local_socket(); 69 connect_local_socket();
70 } 70 }
71 71
72 if (argv[optind])
73 return oneshot_command(argc - optind, argv + optind);
74
72 ttyhacks = isatty(0) && !dflag; 75 ttyhacks = isatty(0) && !dflag;
73 init(); 76 init();
74 tty_init(); 77 tty_init();
75 for (;;) { 78 for (;;) {
76 FD_ZERO(&fds); 79 FD_ZERO(&fds);