BTS

Message4640

Author Xk2c
Recipients Xk2c
Date 2013-09-30.08:29:39
Content
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
File name Uploaded
check4progs.mod Xk2c, 2013-09-30.08:29:39
History
Date User Action Args
2013-09-30 08:29:39Xk2csetrecipients: + Xk2c
2013-09-30 08:29:39Xk2csetmessageid: <1380529779.6.0.883143468575.issue1279@bts.grml.org>
2013-09-30 08:29:39Xk2clinkissue1279 messages
2013-09-30 08:29:39Xk2ccreate