Timeline for Why is it so that when tar is executed from the script I get "command not found", (it runs without giving me such output from the terminal)?
Current License: CC BY-SA 4.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 13, 2022 at 12:09 | comment | added | Kusalananda♦ | @StéphaneChazelas The reader has options now, and extra background given by your comments. Thanks for the input (and for that extra edit just now)! | |
| Jan 13, 2022 at 12:08 | history | edited | Stéphane Chazelas | CC BY-SA 4.0 |
need an extra space to separate the comment from the `\ ` command
|
| Jan 13, 2022 at 12:05 | comment | added | Stéphane Chazelas |
Depends what we want. But it seems to me that if that tar fails the script should probably abort. So maybe even tar ... || exit; echo succeeded; ... would be better if there's more the script is doing afterwards.
|
|
| Jan 13, 2022 at 11:48 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 16 characters in body
|
| Jan 13, 2022 at 11:47 | comment | added | Kusalananda♦ |
@StéphaneChazelas Wouldn't else false be better, at least if we consider this as a replacement for only the given AND-list in a generic script?
|
|
| Jan 13, 2022 at 11:29 | comment | added | Stéphane Chazelas |
Your if based one would not propagate tar's failing exit status. You'd need some else exit 1 or else exit
|
|
| Jan 13, 2022 at 11:23 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 487 characters in body
|
| Jan 12, 2022 at 19:02 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 2 characters in body
|
| Jan 12, 2022 at 18:50 | vote | accept | John Smith | ||
| Jan 12, 2022 at 18:40 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
added 280 characters in body
|
| Jan 12, 2022 at 18:33 | history | edited | Kusalananda♦ | CC BY-SA 4.0 |
deleted 10 characters in body
|
| Jan 12, 2022 at 18:28 | history | answered | Kusalananda♦ | CC BY-SA 4.0 |