Commit History

Author SHA1 Message Date
  Rob Landley d78f05e91b Make touch use xparsedate() (result: -t and -d the same, autodetects format), 5 years ago
  Rob Landley 747e296ff6 Add FLAG(x) macro, expanding to (toys.optflags & FLAG_##x) 5 years ago
  Elliott Hughes 141a075c0e Clean up some --help formatting. 5 years ago
  Elliott Hughes d54fac979e touch: ignore -f like everyone else. 5 years ago
  Rob Landley 482c422f8e Convert more argument variables in GLOBALS() to new style. 5 years ago
  Elliott Hughes 36b6eb775f Fix touch -a/-m (and add the missing tests). 7 years ago
  Rob Landley 9c0ad3248f Add special "touch -" behavior and require an argument. 7 years ago
  Rob Landley 354ff68314 More touch tests, and a fix found by one. (The three -t formats can only 7 years ago
  Rob Landley 9f3d8aa80f Unify touch -t and -d handling, allow posix's underspecified "time designator" 7 years ago
  Elliott Hughes abf079b2d8 Fix touch(1) date parsing on tzcode-derived systems. 8 years ago
  Davis Mosenkovs 00385e8d0e Fix touch -t seconds parsing 8 years ago
  Rob Landley 671146c3b4 Actually set time with touch -d and -t when you don't specify nanonseconds. 9 years ago
  Rob Landley f033f8607f Move the magic list of commands needing cleanup from toys/pending/README 9 years ago
  Rob Landley 9628107532 Rewrite of a patch from Elliott Hughes to implement touch -h and switch API to utimensat() which offers nanosecond granularity and UTIME_OMIT/UTIME_NOW. 9 years ago
  Rob Landley a2fd3cedb2 Make touch -d miliseconds work. (Still only 6 digits precision instead of 9, but it's a start.) 9 years ago
  Rob Landley 76678fa573 Bugfix from Ashwini Sharma: Z timezone required by posix for touch but not for libc, so we have to implement it here. 9 years ago
  Rob Landley 1b7e562a28 Minor cleanup pass on touch. 9 years ago
  Rob Landley 64aae2b41f Minor cleanups. 10 years ago
  Rob Landley f93d4862a9 Don't write a zero past end of toybuf with large -d value. 10 years ago
  Rob Landley 1afe7fae55 Fix usage: lines for a couple commands. 11 years ago
  Rob Landley 662a267c9b Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to. 11 years ago
  Rob Landley 471ce1b299 Update touch: add remaining posix arguments, make existing ones work. 11 years ago
  Rob Landley bbda4efd9d More touch cleanup to use generic infrastructure: use getdate() from libc, use flag macros, option parsing can collect argument strings in global block, use existing perror_* macros. 11 years ago
  Rob Landley 47ee6f3003 Fix touch warnings (unused variables, failure to reserve space for null terminator). 11 years ago
  Rob Landley f6261b3a80 Refactor touch (cleanup whitespace, brackets, function order), code otherwise same. 11 years ago
  Rob Landley ea52189f6d Add touch from Choubey Ji. 11 years ago