procmail
[Top] [All Lists]

Re: variables instead of basenames (was rule vbs,exe -> folder)

2001-02-23 13:56:22
Timothy Luoma wrote,

| FWIW... I used to do this because I had my own formail and wanted to make
| sure that my scripts always used that one instead of any other one it found
| in the $PATH
| 
| But in general it's probably not necessary

I've often had my own copies of executables, but I take care of that by
putting them (or symlinks to them) into a special directory and setting PATH,
both in my .profile for interactive shell logins and in my .procmailrc for
procmail recipes, to have that special directory ahead of the system
binaries, like this:

PATH=$HOME/priority:$HOME/firstscripts:$PATH:$HOME/binary:$HOME/scripts

That way binaries in ~/binary and scripts in ~/scripts are superseded by
anything of the same name in the directories in the default PATH, while
binaries in ~/priority and scripts in ~/firstscripts outrank the system
executables.

I don't like using absolute paths to executables because the sysadmin might
reorganize the directories or move my home at any time, and saving the
absolute paths in variables doesn't help.  Assigning a PATH that refers to
[the default] $PATH and to $HOME is a way to roll with the punches.

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>