Package: zsh
Version: 4.2.5-20
Severity: normal

The sched builting provided by the zsh/sched module seems to execute
a scheduled command only when an enter is pressed after the time
specified has elapsed/arrived, much like how mail notification
occurs. This makes the command useless when the user wants to
schedule and leave the shell idle, and start using it only after the
time for which the command is scheduled. I don't know if this is a
bug or it is the intended behaviour. If it is intended, I could
suggest a few alternatives that would add this feature.

1. Execute as soon as the time arrives (maybe in the background),
   much like how job exit notification works with the NOTIFY option
   works. May be sched can reuse this option or have an option of
   its own. Or even better, perhaps one can indicate the desired
   behaviour on a per-item basis, by a flag, when adding an item.

2. (Less desirable) Have a flag to sched/another builtin which
   synchronously waits for the specified sched item/next N sched
   items/sched items within a certain time frame.

sched is great especially when it is an overkill to use something
like atd. Intuitively, I could guess without seeing the source that
perhaps the existing behaviour exists because it is much neater to
add a postcmd hook than to maybe register a sigalarm. Even if this
is the case, I feel these changes will greatly increase the
functionality of the builtin.

Regards,
Ramkumar.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (101, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.13.4-archck8
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)

Versions of packages zsh depends on:
ii  debconf [debconf-2.0]         1.4.58     Debian configuration management sy
ii  libc6                         2.3.5-6    GNU C Library: Shared libraries an
ii  libncurses5                   5.4-9      Shared libraries for terminal hand
ii  passwd                        1:4.0.12-6 change and administer password and

Versions of packages zsh recommends:
ii  libcap1                       1:1.10-14  support for getting/setting POSIX.
ii  libpcre3                      6.3-1      Perl 5 Compatible Regular Expressi

-- no debconf information

-- 
I dunno, I hear Microsoft has an app that will make Windows
run pretty damned fast. I believe they called it FDISK.
                             --from a Slashdot post




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to