• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Avoid stat calls (buildtools, c639a41)

Created 12/24/2007, updated 3/5/2024
  • snippets

Shave off some lines and clean up the code a little by avoiding the stat invocations and using the -nt and -ot test primaries instead.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Be more verbose (buildtools, 49ec906)
Use $() rather than backticks (buildtools, 6c7aa3e) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).