From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from tweety.bhp.com.au ([192.83.224.130]) by hawkwind.utcs.utoronto.ca with SMTP id <24660>; Sun, 17 Aug 1997 23:42:12 -0400 Received: from gossamer.itmel.bhp.com.au (gossamer.itmel.bhp.com.au [134.18.115.254]) by tweety.bhp.com.au (8.8.4/8.8.4) with ESMTP id MAA05470 for ; Mon, 18 Aug 1997 12:31:24 +1000 (EST) Received: from nc.itntl.bhp.com.au (nc.itntl.bhp.com.au [134.18.16.178]) by gossamer.itmel.bhp.com.au (8.8.6/8.8.6) with ESMTP id MAA25562 for ; Mon, 18 Aug 1997 12:30:53 +1000 (EST) Received: from nc.itntl.bhp.com.au (localhost [127.0.0.1]) by nc.itntl.bhp.com.au (8.8.6/8.8.6) with ESMTP id MAA13366; Mon, 18 Aug 1997 12:30:48 +1000 (EST) Message-Id: <199708180230.MAA13366@nc.itntl.bhp.com.au> To: rc@hawkwind.utcs.toronto.edu Subject: whatis bug cc: j@nc.itntl.bhp.com.au Date: Sun, 17 Aug 1997 22:30:48 -0400 From: Jason Tyler Instead of printing "$1 not found", whatis says "$1: Permission denied" if $path($#path)^/$1 exists but is not executable. The obvious fix is: *** builtins.c.old Tue Jul 8 01:43:52 1997 --- builtins.c Mon Aug 18 12:05:36 1997 *************** *** 342,348 **** } if (!f) { found = FALSE; ! if (errno != ENOENT) uerror(av[i]); else fprint(2, "%s not found\n", av[i]); --- 342,348 ---- } if (!f) { found = FALSE; ! if (errno != ENOENT && errno != EACCES) uerror(av[i]); else fprint(2, "%s not found\n", av[i]); However, I don't know the source well enough to predict what unwanted side-effects this might cause; can anyone suggest a better solution? jason -- OBrc: fn test-r { >[2=] <$1 } # fails on named pipes