IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 1 > typeset man page

typeset man page

Section 1 - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





User Commands                                          typeset(1)



NAME
     typeset, whence - shell built-in functions to set/get attri-
     butes and values for shell variables and functions

SYNOPSIS
     typeset [ _ HLRZfilrtux [n]]  [ name [ = value]]...

     whence [-pv] name...

DESCRIPTION
     typeset sets attributes and values for shell  variables  and
     functions.  When typeset is invoked inside a function, a new
     instance of the variables name is  created.   The  variables
     value and type are restored when the function completes. The
     following list of attributes may be specified:

     -H       This flag provides UNIX to host-name  file  mapping
              on non-UNIX machines.



     -L       Left justify and remove leading blanks from  value.
              If n is non-zero it defines the width of the field;
              otherwise, it is determined by  the  width  of  the
              value  of  first  assignment.  When the variable is
              assigned to, it is filled on the right with  blanks
              or  truncated, if necessary, to fit into the field.
              Leading zeros are removed if the -Z  flag  is  also
              set.  The -R flag is turned off.



     -R       Right justify and fill with leading blanks.   If  n
              is non-zero it defines the width of the field, oth-
              erwise it is determined by the width of  the  value
              of  first assignment. The field is left filled with
              blanks or truncated from the end if the variable is
              reassigned.  The -L flag is turned off.



     -Z       Right justify and fill with leading  zeros  if  the
              first  non-blank  character  is  a digit and the -L
              flag has not been set.  If n is non-zero it defines
              the width of the field; otherwise, it is determined
              by the width of the value of first assignment.



     -f       The names refer to function names rather than vari-
              able names. No assignments can be made and the only
              other valid flags are -t, -u and -x.  The  flag  -t



SunOS 5.10           Last change: 1 Feb 1995                    1






User Commands                                          typeset(1)



              turns  on execution tracing for this function.  The
              flag -u causes this function  to  be  marked  unde-
              fined.   The  FPATH    variable will be searched to
              find the function definition when the  function  is
              referenced.  The flag -x allows the function defin-
              ition to remain in effect across  shell  procedures
              invoked by name.



     -i       Parameter is an  integer.   This  makes  arithmetic
              faster.  If  n  is  non-zero  it defines the output
              arithmetic base; otherwise,  the  first  assignment
              determines the output base.



     -l       All upper-case characters are converted  to  lower-
              case. The upper-case flag, -u is turned off.



     -r       The given names are marked readonly and these names
              cannot be changed by subsequent assignment.



     -t       Tags the variables.  Tags are  user  definable  and
              have no special meaning to the shell.



     -u       All lower-case characters are converted  to  upper-
              case  characters. The lower-case flag, -l is turned
              off.



     -x       The given names are marked for automatic export  to
              the environment of subsequently-executed commands.



     The -i attribute can not be specified along with -R, -L, -Z,
     or -f.

     Using + rather than - causes these flags to be  turned  off.
     If  no  name  arguments are given but flags are specified, a
     list of names (and optionally the values) of  the  variables
     which have these flags set is printed.  (Using + rather than
     - keeps the values from being  printed.)  If  no  names  and
     flags  are  given, the names and attributes of all variables



SunOS 5.10           Last change: 1 Feb 1995                    2






User Commands                                          typeset(1)



     are printed.

     For each name, whence indicates  how it would be interpreted
     if used as a command name.

     The -v flag produces a more verbose report.

     The -p flag does a path search for name even if name  is  an
     alias, a function, or a reserved word.

     On this man page, ksh(1) commands that are preceded  by  one
     or  two * (asterisks) are treated specially in the following
     ways:

     1.  Variable assignment lists preceding the  command  remain
         in effect when the command completes.


     2.  I/O redirections are processed  after  variable  assign-
         ments.


     3.  Errors cause a script that contains them to abort.


     4.  Words, following a command preceded by **  that  are  in
         the  format  of a variable assignment, are expanded with
         the same rules as a variable assignment. This means that
         tilde  substitution  is  performed  after the = sign and
         word splitting and file name  generation  are  not  per-
         formed.


ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Availability                | SUNWcsu                     |
    |_____________________________|_____________________________|


SEE ALSO
     ksh(1), set(1), sh(1), attributes(5)









SunOS 5.10           Last change: 1 Feb 1995                    3





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:25:35 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

CPAN man page (4210 hits)
(Suse Linux 10.1)

ssh man page (4117 hits)
(Suse Linux 10.1)

svn man page (2480 hits)
(FreeBSD 6.2)

adv_cap_autoneg man page (1782 hits)
(Solaris 10 11_06)

startproc man page (1711 hits)
(Suse Linux 10.1)

sqlite3 man page (1663 hits)
(openSUSE 10.2)

signal man page (1393 hits)
(Suse Linux 10.1)

pprosetup man page (1241 hits)
(Solaris 10 11_06)

netcat man page (1237 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (1126 hits)
(Solaris 10 11_06)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Food :: Illuminated Touch Panel :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum