version 1.18, 2011/12/28 01:52:33 |
version 1.19, 2014/03/10 20:37:27 |
|
|
The options are as follows: |
The options are as follows: |
.Bl -tag -width flag |
.Bl -tag -width flag |
.It Fl a |
.It Fl a |
.Pq Nm unexpand No only |
|
By default, only leading blanks and tabs |
By default, only leading blanks and tabs |
are reconverted to maximal strings of tabs. |
are reconverted to maximal strings of tabs. |
If the |
If the |
|
|
option is given, tabs are inserted whenever they would compress the |
option is given, tabs are inserted whenever they would compress the |
resultant file by replacing two or more characters. |
resultant file by replacing two or more characters. |
.It Fl t Ar tablist |
.It Fl t Ar tablist |
.Pq Nm expand No only |
|
If the argument to |
If the argument to |
.Fl t , |
.Fl t , |
.Ar tablist , |
.Ar tablist , |
|
|
.Fl t |
.Fl t |
may consist of a list |
may consist of a list |
of two or more positive decimal integers, |
of two or more positive decimal integers, |
comma separated, |
separated by commas or single blank characters, |
in ascending order: |
in ascending order: |
in the event of having to process a |
in the event of having to process a |
.Aq tab |
.Aq tab |
|
|
.Pq - . |
.Pq - . |
.El |
.El |
.Sh EXIT STATUS |
.Sh EXIT STATUS |
The |
.Ex -std expand unexpand |
.Nm expand |
|
and |
|
.Nm unexpand |
|
utilities exit 0 on success or \*(Gt0 if an error occurred. |
|
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr fold 1 |
.Xr fold 1 |
.Sh STANDARDS |
.Sh STANDARDS |
|
|
.Nm unexpand |
.Nm unexpand |
utilities are compliant with the |
utilities are compliant with the |
.St -p1003.1-2008 |
.St -p1003.1-2008 |
specification, |
specification. |
with the following exceptions: |
.Pp |
.Bl -bullet -offset indent |
The |
.It |
.St -p1003.1-2008 |
.Tn POSIX |
specification mandates that |
does not support specifying tabstops without use of the |
|
.Fl t |
|
flag. |
|
.It |
|
.Tn POSIX |
|
specifies that multiple tabstops may be given separated by |
|
commas or blanks. |
|
This implementation supports only comma-separated tabstops. |
|
.It |
|
.Nm unexpand |
.Nm unexpand |
does not recognise the |
supports the |
.Fl t |
.Fl t |
flag. |
flag, but that is not supported by this implementation. |
.El |
.Pp |
|
The ability to specify tabstops without the |
|
.Fl t |
|
flag is not specified by |
|
.St -p1003.1-2008 , |
|
though it states it |
|
.Dq may be present in some implementations . |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm expand |
.Nm expand |