You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version = 1.72.0
Hash = 1f5b41a1fa45587676aa81b22e70bc6505f6b12e
WebContainer = 961159ce
Browser name = Chrome
Full version = 115.0.0.0
Major version = 115
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 83505079,
"usedJSHeapSize": 79315871,
"jsHeapSizeLimit": 4294705152
}
Additional context
While sleep is not a critical command to have, it's useful in some situations like giving enough time for the user to read the output before running next command.
It seems we have a reduced set of shell commands available:
So it will be helpful to know what can be expect to be supported in the future, and what shouldn't be considered.
An example implementation of sleep (not tested):
#!/bin/sh# check if the user provided a sleep durationif [ $#-ne 1 ];thenecho"usage: sleep <seconds>"exit 1
fi# calculate the end time by adding the seconds
end_time=$(($(date +%s) +$1))# Loop until the current time is greater than or equal to the end timewhile [ $(date +%s)-lt$end_time ];do:doneexit 0
The text was updated successfully, but these errors were encountered:
Describe the bug
The sh command "sleep" is not available in jsh
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/itsjavi/storylite
Steps to reproduce
Expected behavior
jsh should provide a
sleep
command, and scripts using it won't failParity with Local
Screenshots
No response
Platform
Additional context
While
sleep
is not a critical command to have, it's useful in some situations like giving enough time for the user to read the output before running next command.It seems we have a reduced set of shell commands available:
So it will be helpful to know what can be expect to be supported in the future, and what shouldn't be considered.
An example implementation of sleep (not tested):
The text was updated successfully, but these errors were encountered: