Timeline for This 'while' loop countdown with sleep doesn't work
Current License: CC BY-SA 4.0
Post Revisions
17 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jun 29, 2023 at 7:31 | history | edited | Volker Siegel | CC BY-SA 4.0 |
Titles are not required to contain question marks (or be actual questions in English - though they could be).
|
| S Jun 29, 2023 at 7:31 | history | suggested | Peter Mortensen | CC BY-SA 4.0 |
Titles are not required to contain question marks (or be actual questions in English - though they could be).
|
| Jun 26, 2023 at 13:35 | comment | added | Josh | This is a great reason not to capitalize variables in scripts. ALL_CAPS should be reserved for environment and special variables. | |
| Jun 26, 2023 at 10:02 | comment | added | gidds |
@JackAidley And even if the sleep time were totally accurate, the loop would still get out of time because it doesn't account for the shell processing time etc. (Amusingly, using the shell built-in $SECONDS as intended would work around that!)
|
|
| Jun 26, 2023 at 9:18 | review | Suggested edits | |||
| S Jun 29, 2023 at 7:31 | |||||
| Jun 25, 2023 at 23:14 | comment | added | Barmar | @MontyHarder If they'd known that, they wouldn't have had the problem in the first place. The answer shouldn't be in the question/title. | |
| Jun 25, 2023 at 17:36 | comment | added | Monty Harder | Please modify the tile of this question to include the key fact that the loop (ab)uses a system variable. | |
| Jun 25, 2023 at 12:23 | history | edited | Jeff Schaller♦ | CC BY-SA 4.0 |
deleted 9 characters in body; edited title
|
| Jun 25, 2023 at 11:20 | comment | added | anon | Just a word of warning: sleep doesn't guarantee an exact time of sleeping and can be quite inaccurate. | |
| Jun 24, 2023 at 16:26 | history | became hot network question | |||
| Jun 24, 2023 at 12:08 | answer | added | Stéphane Chazelas | timeline score: 10 | |
| Jun 24, 2023 at 11:15 | history | edited | ReflectYourCharacter | CC BY-SA 4.0 |
deleted 16 characters in body
|
| Jun 24, 2023 at 10:52 | history | edited | Sotto Voce | CC BY-SA 4.0 |
changed in title "sleeper" -> "sleep", and added closing code fence at end of script
|
| Jun 24, 2023 at 10:38 | history | edited | ReflectYourCharacter | CC BY-SA 4.0 |
deleted 11 characters in body
|
| Jun 24, 2023 at 9:01 | answer | added | Sotto Voce | timeline score: 20 | |
| S Jun 24, 2023 at 8:26 | review | First questions | |||
| Jun 24, 2023 at 8:54 | |||||
| S Jun 24, 2023 at 8:26 | history | asked | NeG | CC BY-SA 4.0 |