SBCS : psd manpage

Current Supported Releases: Sablime® v6.0 & v5.2


Updated Tuesday,30-Sep-03 14:28:07 EDT


NAME
     psd - locate the current SBCS file directory

SYNOPSIS
     psd [-agrt]

DESCRIPTION
     psd is used in  conjunction  with  an  s-file  source  tree,
     defined  by  the  sbcsenv(1)  variable  source_tree.  When a
     source tree is defined, the s-files are located under a dif-
     ferent  node (s-node) than the working node (g-node), and to
     every directory under the working node corresponds a  direc-
     tory  under  the  s-node.  Just as pwd(1) prints the path to
     the working directory, psd will print the relative  path  to
     the  directory  under  the  s-node  that matches the current
     directory.  If no source  tree  is  active,  psd  returns  .
     (dot).

OPTIONS
     -a   Print absolute path name, starting from / (root).

     -g   Path to the g-node working directory. When the  current
          directory  is  under the g-node this is always . (dot).
          When it is under the s-node, the path to  the  matching
          g-node directory is printed.

     -r   Print relative path name.

     -t   Print the source tree definition.

COMMENTS
     psd first has to determine if  there  is  an  active  source
     tree.   To  do  this  it follows the same steps as a regular
     SBCS command.  The sbcsenv is searched  by  looking  up  the
     SBCSPROJ  and  SBCSENV  shell  environment variables, and if
     needed, searching for the user's default .sbcsenv file.

     psd is useful in scripts or aliases.  Under ksh(1), the fol-
     lowing are examples of useful expressions,
          ls $(psd)
          cd $(psd)
          alias -x cd_s='cd $(psd)'
          alias -x cd_g='cd $(psd -g)'
          rm -i $(psd)/[sp].obsfile.[co]

SEE ALSO
     , nadmin(1), ndelta(1), nget(1), sbcsenv(1), sfile(1).

SBCS Release 1.2    Last change: 1 April 1994                   1

Return to SBCS Commands manpage index


Sablime® HOME | Availability | Ordering | Download | Documentation | FAQ's | Support | Training | Newsletter


LUCENT TECHNOLOGIES Copyright © 2003 Lucent Technologies
All Rights Reserved.