[issue1279] check4progs() does not work correctlx with more then one argument

Thilo Six bts at bts.grml.org
Mon Sep 30 10:29:39 CEST 2013


New submission from Thilo Six <tech at xk2c.de>:

Hello

when given more then one arguments to check4progs()
it will echo only the last missing program instead of all. example follows:

$ . ~/temp/check4progs.orig 
$ check4progs foo cp ln mv bar wc tr tee
bar not installed

patched version:
$ . ~/temp/check4progs.mod 
$ check4progs foo cp ln mv bar wc tr tee
foo not installed
bar not installed

Extra points: Exitstatus is the sum of all missing programs from argument list.

Please note this patch has been tested with bash!
I *think* it should work without modification in zsh, too.

Regards,
Thilo

----------
files: check4progs.mod
messages: 4640
nosy: Xk2c
priority: wish
status: unread
title: check4progs() does not work correctlx with more then one argument

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1279>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check4progs.mod
Type: audio/x-mod
Size: 334 bytes
Desc: not available
URL: <http://ml.grml.org/pipermail/bugs-changes/attachments/20130930/133da3d4/attachment.bin>


More information about the Bugs-changes mailing list