Skip to content Accesskey=4Skip to sub-navigation Accesskey=3View our Accessibility Options MIT Information Systems Home About IS&T Contact IS&T Site Map Search Advanced Search
Getting StartedGetting Services by Topic or Alphabetically Getting Help

On This Page

[Help]

  

Quick Links

Top Level

Related Links

Ask OLC a question

Athena Consulting Homepage

Helpdesk Stock Answers (for Mac/PC questions)


Difference between ADD and ATTACH

"add" is not really a command, but an alias that is defined by the
standard athena dotfiles.  The difference between "add" and "attach" is
that

attach	only attaches the locker that you specify, whereas

add	does many things:

	- attaches the locker,
	- extends your "PATH" environment variable to 
          include /mit/lockername/arch/$ATHENA_SYS/bin or
          /mit/lockername/$bindir if /mit/lockername/arch/$ATHENA_SYS/bin
          does not exist,
	- extends your "MANPATH" environment variable to
	  include /mit/lockername/man

Thus, if you use "add", you will be able to run programs from the
/mit/locker/arch/$ATHENA_SYS/bin directories, and also access the 
manual pages in the locker, both without having to specify the path.  
Example:

	attach graphics
	/mit/graphics/arch/$ATHENA_SYS/bin/xloadimage
	man -M/mit/graphics/man xloadimage
or
	add graphics
	xloadimage 
	man xloadimage

Some lockers still use the old /mit/lockername/$bindir convention and
other lockers may use both conventions. The
/mit/lockername/arch/$ATHENA_SYS/bin convention is preferred.

You can see that the "add" command makes things much simpler and more
elegant.  It also contains several options that may be useful, for
example, when trying to fix dotfiles.  For more information, type at the
athena% prompt:

	man add
	man attach

For more info on the conventions used by lockers type:

	man lockers

last updated: 3/6/97

MIT Home | Getting Started | Getting Services | Getting Help | About IS&T | Accessibility
Ask a technology question or send a comment about this web page.