Current menu script

Fairlight fairlite at fairlite.com
Wed Feb 1 19:46:53 PST 2006


With neither thought nor caution, Jeff Harrison blurted:
> 
> Perhaps I was not clear.  I was modifying all of the
> shell scripts anyway - by adding the following line as
> the first thing in each script:
> 
> /appl/fp/dclerk lib -s1 -z logger -rw $0  

Can I chime in a sec?  

It would be far more versatile to parse the fppath file to obtain the
path.  This way, in future, if and when you need to migrate systems or even
just change the location of fP's programs to elsewhence, you don't have to
modify anything except the actual file that needs changing anyway.

If you're working on something that uses different settings than fppath
does, then make a central variable setting script from which all scripts
obtain their value.  Then you still have only one place to set and change
your value[s].

One of those things people should always consider is that the fewer values
that are hardcoded, the more flexible something is.  I'll almost always
(with very few quick, short, barbarous insta-hacks instituted in dire
emergencies) take the extra couple seconds to design something so that all
pathnames for programs, directories--everything that can be a variable
-is- a variable.  If I can centralise that location, I do so; so much the
better.

If I was having to modify all scripts -anyway-, I'd personally take as many
steps as possible to make sure I never had to do it again.

mark->


More information about the Filepro-list mailing list