[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: shell script sniplets in /usr/bin?

Anthony Towns wrote:
> Neither. Shell snippets should not go in PATH unless they also happen to 
> be programs.

I hate to say it aj, but you just gave him a hell of an out there...

# This is /usr/in/gettext.sh
if [ "$0" = "gettext.sh" ]; then
	echo "Ha ha, I'm executable, so I can be in path!"
	exit 1
# insert rest of gettext.sh here

If anyone is as sickened by that as I am, I think I have an old proposal
filed against debian-policy to get rid of programs in path with an
extension that tells what the implementation language is. Feel free to

see shy jo

Attachment: signature.asc
Description: Digital signature

Reply to: