under bash which can be more or less replaced by type...<br>
otherwhise a for loop in the path could do the trick...<br>
something like (min you this is very ugly but uses only stuff in /bin):<br>
<br>
#!/bin/sh<br>
for i in $(echo $PATH | sed -e 's|:|\n|g'); do <br>
[ -x "$i/$1" ] && exit 0; <br>
done<br>
exit 1<br><br>
could work<br>
<br>
To sum up things: which is a pain to work without..<br>
Till<br><div><span class="gmail_quote">On 8/30/05, <b class="gmail_sendername">Trent Lloyd</b> <<a href="mailto:lathiat@bur.st">lathiat@bur.st</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Aug 30, 2005 at 12:16:36PM +0200, Martin Pitt wrote:<br>> Hi!<br>><br>> I just tested usplash with the very latest packages. Works in<br>> principle, but I get dropped out of the graphical mode back into plain
<br>> ol' 80x25 text mode very soon (amd64, Nvidia GeForce 5200). Is that a<br>> known bug as well or do you need further information about it?<br><br>I've had the same problem however I haven't tested with -6 yet.<br>
<br>Cheers,<br>Trent<br><br>><br>> Martin<br>><br>> --<br>> Martin Pitt <a href="http://www.piware.de">http://www.piware.de</a><br>> Ubuntu Developer <a href="http://www.ubuntu.com">http://www.ubuntu.com
</a><br>> Debian Developer <a href="http://www.debian.org">http://www.debian.org</a><br><br><br><br>> --<br>> ubuntu-devel mailing list<br>> <a href="mailto:ubuntu-devel@lists.ubuntu.com">ubuntu-devel@lists.ubuntu.com
</a><br>> <a href="http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel">http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel</a><br><br><br>--<br>Trent Lloyd <<a href="mailto:lathiat@bur.st">lathiat@bur.st</a>>
<br><a href="http://Bur.st">Bur.st</a> Networking Inc.<br><br>--<br>ubuntu-devel mailing list<br><a href="mailto:ubuntu-devel@lists.ubuntu.com">ubuntu-devel@lists.ubuntu.com</a><br><a href="http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel">
http://lists.ubuntu.com/mailman/listinfo/ubuntu-devel</a><br></blockquote></div><br>