Timeline for EOF statement in bash script doesn't execute in an IF statement
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 29, 2020 at 0:58 | comment | added | muru | By definition, the exit status is returned after exiting. | |
| Feb 28, 2020 at 18:02 | comment | added | user-2147482428 | Can the status of sftp be tested without exiting it? | |
| Feb 28, 2020 at 6:35 | comment | added | Gordon Davisson | Also, the test on $? tests the exit status of sftp, which is only defined after sftp exits. After it’s exited, it’s too late to send it input. | |
| Feb 27, 2020 at 23:44 | vote | accept | user-2147482428 | ||
| Feb 27, 2020 at 22:46 | history | answered | muru | CC BY-SA 4.0 |