Browse Source

Recommend 'sleep' instead of 'true' in while loops

To allow Ctrl-C to function
pull/61/head
Eric Radman 2 months ago
parent
commit
d2769ea712
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      README.md
  2. +2
    -2
      entr.1

+ 1
- 1
README.md View File

@ -44,7 +44,7 @@ Clear the screen and run a query after the SQL script is updated:
Rebuild project if a source file is modified or added to the src/ directory:
$ while true; do find src -name '*.rb' | entr -d make; done
$ while sleep 0.1; do find src -name '*.rb' | entr -d make; done
Self-terminate after a file is updated


+ 2
- 2
entr.1 View File

@ -13,7 +13,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
.Dd October 16, 2020
.Dd December 23, 2020
.Dt ENTR 1
.Os
.Sh NAME
@ -175,7 +175,7 @@ Clear the screen and run a query after the SQL script is updated:
.Pp
Rebuild project if a source file is modified or added to the src/ directory:
.Pp
.Dl $ while true; do ls src/*.rb | entr -d make; done
.Dl $ while sleep 0.1; do ls src/*.rb | entr -d make; done
.Pp
Auto-reload a web server, or terminate if the server exits
.Pp


Loading…
Cancel
Save