Re: [HACKERS] TODO list updated
Karl DeBisschop <kdebisschop@range.infoplease.com>
From: Karl DeBisschop <kdebisschop@range.infoplease.com>
To: scrappy@hub.org
Cc: tgl@sss.pgh.pa.us, pgman@candle.pha.pa.us, peter_e@gmx.net, pgsql-hackers@postgreSQL.org
Date: 2000-01-13T17:42:16Z
Lists: pgsql-hackers
> bash-2.03$ which echo > /usr/slocal/bin/echo I don't think that test has bearing on whether echo is builtin. Consider the following: skillet.infoplease.com:/u/kdebisschop> export PATH=.:$PATH skillet.infoplease.com:/u/kdebisschop> which echo /usr/bin/echo skillet.infoplease.com:/u/kdebisschop> echo '#!/bin/echo trap door'>./echo skillet.infoplease.com:/u/kdebisschop> chmod +x echo skillet.infoplease.com:/u/kdebisschop> which echo /disk/1/home/kdebisschop/echo skillet.infoplease.com:/u/kdebisschop> ./echo foo trap door ./echo foo skillet.infoplease.com:/u/kdebisschop> echo foo foo So bash is using the builtin, but which shows the script. BUT, for aliases (this is a totally separate shell, BTW): skillet.infoplease.com:/u/kdebisschop> alias echo='echo tarp door' skillet.infoplease.com:/u/kdebisschop> echo foo tarp door foo skillet.infoplease.com:/u/kdebisschop> which echo /usr/bin/echo -- Karl DeBisschop <kdebisschop@alert.infoplease.com> 617.832.0332 (Fax: 617.956.2696) Information Please - your source for FREE online reference http://www.infoplease.com - Your Ultimate Fact Finder http://kids.infoplease.com - The Great Homework Helper Netsaint Plugins Development http://netsaintplug.sourceforge.net