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