Thursday, March 22, 2012

It's not a bug if you would just use the undocumented feature...

At work I maintain an apt-mirror for Debian and Ubuntu.  Occasionally I like to check the status of an update by monitoring the apt-log.* files as follows:
tail -f /home/apt/var/apt-log.*
Which until recently would tail the output of all the log files and then sleep for 1 second.  A new feature of tail, part of the coreutils package, is inotify support. This is a nice feature when tailing a single file as updates to the file are displayed in realtime.  However when tailing multiple files that are constantly being updated it becomes an incomprehensible mess.

No problem, the man page says that -s allows you to specify a sleep interval.  Except that this option does not disable inotify and is effectively ignored.  Surely this must be a bug, and I am not the only who has thought so. (583198)

What really irks me, and the reason I wrote this post, is the following statement:
use the deliberately undocumented ---disable-inotify
So instead of a simple "if -s then disable inotify" which logically follows the intent of the command if the user is specifying a sleep interval we are told to use an option that is only apparent if you read the source code because it was intentionally undocumented.

3 comments:

  1. Casino: Online Slots from Leovegas - SlotsBillion
    Casino: Online Slots from Leovegas. Play our wide range 다파벳 of casino games including 1xbet slots, blackjack, roulette and video slots. Register and start leovegas earning real

    ReplyDelete
  2. 888 Casino NJ review - JT Hub
    888 Casino NJ review: Get a 춘천 출장마사지 $500 risk-free bet or 2x deposit that's when the odds were set 경주 출장샵 and the 군산 출장샵 game 시흥 출장마사지 was 경기도 출장샵 settled.

    ReplyDelete
  3. Casinos in the UK - How to find good games - GrizzGo
    So, what do we mean 저녁 메뉴 룰렛 by jordan 18 white royal blue discount “casinos in the UK”? air jordan 18 retro men to me to air jordan 18 retro men red from me find a casino and live casino games on a mobile phone device in air jordan 18 retro men blue free shipping 2021.

    ReplyDelete