>>>>> On Sat, 26 Jul 2008 21:44:28 -0500, Raphael Geissert <[EMAIL PROTECTED]> >>>>> said:
Raphael> I am neither the maintainer nor upstream but IMHO as the 'type' built-in is Raphael> neither required by POSIX nor SUSv3 nor Debian Policy it Raphael> should be considered implementation-dependent invalidating Raphael> this bug (but could be a wishlist). That is a good point... Raphael> Actually, this report is also invalid because relying on Raphael> /bin/sh providing such a built-in is a policy violation; and Raphael> if the script has a #!/bin/dash shebang it wouldn't be a bug Raphael> either because that's they way how dash implements it :) Ahah ! :-) >> >> If you try with #! /bin/bash the behaviour is correct. Raphael> Complementing what I just said, could you please point to a Raphael> written description of what the "correct behaviour" Raphael> should/must be? If you read even the dash man: type [name ...] Interpret each name as a command and print the resolution of the command search. Possible resolutions are: shell keyword, alias, shell builtin, command, tracked alias and not found. For aliases the alias expansion is printed; for commands and tracked aliases the complete pathname of the command is printed. For a command, the resolution of the command search should take into account the current path... :-) OK, you may interpret the "interpret" word, say, in a bash or dash spirit... :-) >> For information, this issue happens in a script invoking the PIPS >> source-to-source compiler ( http://www.cri.ensmp.fr/people/pips/ ) >> : >> >> # Avoid a recursion if no actual binary is found: >> PATH=./${PIPS_ARCH}:${PIPS_ROOT}/bin/${PIPS_ARCH} \ type ${what} > >> /dev/null || error 3 "no ${what} binary found!" Raphael> And to avoid being pedantic I'll give you a hint: use which Raphael> instead of type :). Oh boy! You mean yet another fork? :-) Cheers, -- Ronan KERYELL |\/ Tel: (+33|0) 2.29.00.14.15 Département Informatique |/) Fax: (+33|0) 2.29.00.12.82 TÉLÉCOM Bretagne, CS 83818 K GSM: (+33|0) 6.13.14.37.66 F-29238 PLOUZANÉ CEDEX 3 |\ E-mail: [EMAIL PROTECTED] FRANCE | \ http://enstb.org/~keryell -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]