1pathconv(1F)                     FMLI Commands                    pathconv(1F)
2
3
4

NAME

6       pathconv - search FMLI criteria for filename
7

SYNOPSIS

9       pathconv [-f] [-v alias]
10
11
12       pathconv [-t] [-l] [-nnum] [-v string]
13
14

DESCRIPTION

16       The pathconv function converts an alias to its pathname. By default, it
17       takes the alias as a string from the standard input.
18

OPTIONS

20       -f         If -f is specified, the full path will be returned (this  is
21                  the default).
22
23
24       -t         If -t is specified, pathconv will truncate a pathname speci‐
25                  fied in string in a format suitable for display as  a  frame
26                  title.  This format is a shortened version of the full path‐
27                  name, created by deleting components of the  path  from  the
28                  middle  of the string until it is under DISPLAYW — 6 charac‐
29                  ters in length, and then inserting ellipses ( ... )  between
30                  the remaining pieces. Ellipses are also used to show trunca‐
31                  tion at the ends of the strings if necessary, unless the  -l
32                  option is given.
33
34
35       -l         If -l is specified, < and > will be used instead of ellipses
36                  ( ... ) to indicate truncation at the  ends  of  the  string
37                  generated  by  the -t option. Using -l allows display of the
38                  longest possible string while still notifying users  it  has
39                  been truncated.
40
41
42       -nnum      If  -n is specified, num is the maximum length of the string
43                  (in characters) generated by the -t option. The argument num
44                  can be any integer from 1 to 255.
45
46
47       -valias    |string  If  the -v option is used, then alias or string can
48                  be specified when pathconv is  called.  The  argument  alias
49                  must  be  an alias defined in the alias_file named when fmli
50                  was invoked. The argument string can only be used  with  the
51                  -t option and must be a pathname.
52
53

EXAMPLES

55       Example  1  A sample that uses pathconv to construct the menu title. It
56       searches for MYPATH in the alias_file named when fmli command.
57
58
59       Here is a menu descriptor that uses  pathconv  to  construct  the  menu
60       title.  It  searches  for  MYPATH in the alias_file named when fmli was
61       invoked:
62
63
64         menu=`pathconv -v MYPATH/ls`
65            .
66            .
67            .
68
69
70
71
72       where there is a line in alias_file that defines MYPATH . For  example,
73       MYPATH=$HOME/bin:/usr/bin.
74
75
76
77       Here is a menu descriptor that takes alias from the standard input.
78
79
80         menu=`echo MYPATH/ls | pathconv`
81            .
82            .
83            .
84
85
86

ATTRIBUTES

88       See attributes(5) for descriptions of the following attributes:
89
90
91
92
93       ┌─────────────────────────────┬─────────────────────────────┐
94       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
95       ├─────────────────────────────┼─────────────────────────────┤
96       │Availability                 │SUNWcsu                      │
97       └─────────────────────────────┴─────────────────────────────┘
98

SEE ALSO

100       fmli(1), attributes(5)
101
102
103
104SunOS 5.11                        5 Jul 1990                      pathconv(1F)
Impressum