Subject: Re: library dependencies ?
To: Frederick Bruckman <fb@enteract.com>
From: None <collver@linuxfreemail.com>
List: current-users
Date: 06/02/2001 18:19:53
> The "if [ $? -eq 0 ]; ... fi" is unnecessary, when you can just use
> "&&".
Thanks for the tip :) Me caveman programmer, ooga.
> Here's a shell function that should work with sh or bash (but I've
> only tested it with /usr/bin/ksh)...
>
> find_broke ()
> {
> for e in $@
> do
> ldd $e 2> /dev/null |
> grep -q "not found" &&
> echo $e
> done
> }
This way is more clear, I like it.
Ben
--
NetBSD: because it is there