1 03/31/83  strip_component, spc
 2 
 3 Syntax:  spc path {STR}
 4 
 5 
 6 Syntax as active function:  [spc path {STR}]
 7 
 8 
 9 Function:  returns the archive component name portion of the absolute
10 pathname of the specified entry with the last component removed.  If an
11 archive component pathname is not supplied, then this is equivalent to
12 strip_entry.
13 
14 
15 Arguments:
16 path
17    is the pathname from which the trailing name component is removed.
18 STR
19    is the character string to be stripped.  If STR is not specified,
20    the last component of the entryname portion of path is removed.  If
21    STR is specified, the last components are removed only if they match
22    STR and STR does not equal path.
23 
24 
25 Notes:  Since the pathname is returned in quotes, the command processor
26 treats it as a single argument regardless of special characters in the
27 name.