By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!... and automatically loaded from there? I guess I don't really understand. Library functions must be in files, on disk, before they're used. If they are in the canonical place, they're loaded automatically. If you want to load them manually, you can put them wherever you want.I would like to have my library functions saved to %SHRALIAS_SAVE_PATH as library.sav if possible
Actually I would like to modify this very good suggestion.I would like to have my library functions saved to %SHRALIAS_SAVE_PATH as library.sav if possible
I like the idea of global (shared) library functions. But I must chime in against most of what else has been suggested. I see no benefit from being able to specify the location of function.sav separately from the location of alias.sav, dirhistory.sav, and history.sav.
And I still don't know what's meant by saving library functions. They're in files to begin with and (except for deletion) the in-memory copy of a library function can't be modified. So what's the saving all about? And how would SHRALIAS know how to save them? My library functions come from 4 different files and I imagine that once they're in memory, all knowledge of where they came from has been lost.
Sure. I couldn't think of a reason why not, but I just tested anyway. In lib1.txt (automatically loaded) I putSlightly off topic, though not much ...
I haven't used the library capability, so I'm not familiar with the details.
Can a library routine / function load other ones? I'm thinking a "master" routine/function that loads other library files.
loadextras {
library /r g:\tc23\library\extras\extras.txt
}
Actually I would like to modify this very good suggestion.
My modification is to have a %Function_Save_Path that defines an independent location for automatically & manually saved user-defined variable and library functions. This way the user can keep the alias, history, and dirhistory lists in one directory and user-defined variable & library functions in another.
- If Function_Save_Path is not defined then SHRALIAS_SAVE_PATH, if defined, would dictate.
- Function_Save_Path could be defined even if SHRALIAS_SAVE_PATH isn't.
- All user-defined variable & library functions would be automatically save in the appropriate defined function_save_path.
- All user-defined variable & library functions could be automatically loaded during TCC startup. Controlled by a tcmd.ini directive.
To clarify, as I understand this addition, the current subject proposal would add a "Function_Save_Path" and a "Library_Save_Path" that both work in cooperation with Shralias_Save_Path .Rick Reinckens said: If you're going to have two paths where functions might be or two where libraries might be, why not have 2 separate directives for Functions and 2 for Libraries--one for Function_Save_Path and one for Shralias_Save_path?