Print this page
8858 /usr/bin/grep doesn't support -E option
4580 /usr/bin/grep can't handle multibyte characters
8929 8868 tests are not delivered with system/test/utiltest
8860 Example in grep(1) is incorrect
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>


 102 
 103 
 104          LC_ALL=POSIX locale -ck decimal_point
 105 
 106 
 107 
 108 
 109        would produce:
 110 
 111 
 112          LC_NUMERIC
 113          decimal_point="."
 114 
 115 
 116 
 117 
 118        The following command shows an application of locale to determine
 119        whether a user-supplied response is affirmative:
 120 
 121 
 122          if printf "%s\n" "$response" | /usr/xpg4/bin/grep -Eq\
 123                  "$(locale yesexpr)"
 124          then
 125              affirmative processing goes here
 126          else
 127              non-affirmative processing goes here
 128          fi
 129 
 130 
 131 
 132 ENVIRONMENT VARIABLES
 133        See environ(5) for the descriptions of  LANG, LC_ALL, LC_CTYPE,
 134        LC_MESSAGES, and NLSPATH.
 135 
 136 
 137        The LANG, LC_*, and NLSPATH environment variables must specify the
 138        current locale environment to be written out. These environment
 139        variables will be used if the -a option is not specified.
 140 
 141 EXIT STATUS
 142        The following exit values are returned:


 160        +--------------------+-----------------+
 161        |CSI                 | Enabled         |
 162        +--------------------+-----------------+
 163        |Interface Stability | Standard        |
 164        +--------------------+-----------------+
 165 
 166 SEE ALSO
 167        localedef(1), attributes(5), charmap(5), environ(5), locale(5),
 168        standards(5)
 169 
 170 NOTES
 171        If LC_CTYPE or keywords in the category LC_CTYPE are specified, only
 172        the values in the range 0x00-0x7f are written out.
 173 
 174 
 175        If LC_COLLATE or keywords in the category LC_COLLATE are specified, no
 176        actual values are written out.
 177 
 178 
 179 
 180                                December 20, 1996                     LOCALE(1)


 102 
 103 
 104          LC_ALL=POSIX locale -ck decimal_point
 105 
 106 
 107 
 108 
 109        would produce:
 110 
 111 
 112          LC_NUMERIC
 113          decimal_point="."
 114 
 115 
 116 
 117 
 118        The following command shows an application of locale to determine
 119        whether a user-supplied response is affirmative:
 120 
 121 
 122          if printf "%s\n" "$response" | /usr/bin/grep -Eq\
 123                  "$(locale yesexpr)"
 124          then
 125              affirmative processing goes here
 126          else
 127              non-affirmative processing goes here
 128          fi
 129 
 130 
 131 
 132 ENVIRONMENT VARIABLES
 133        See environ(5) for the descriptions of  LANG, LC_ALL, LC_CTYPE,
 134        LC_MESSAGES, and NLSPATH.
 135 
 136 
 137        The LANG, LC_*, and NLSPATH environment variables must specify the
 138        current locale environment to be written out. These environment
 139        variables will be used if the -a option is not specified.
 140 
 141 EXIT STATUS
 142        The following exit values are returned:


 160        +--------------------+-----------------+
 161        |CSI                 | Enabled         |
 162        +--------------------+-----------------+
 163        |Interface Stability | Standard        |
 164        +--------------------+-----------------+
 165 
 166 SEE ALSO
 167        localedef(1), attributes(5), charmap(5), environ(5), locale(5),
 168        standards(5)
 169 
 170 NOTES
 171        If LC_CTYPE or keywords in the category LC_CTYPE are specified, only
 172        the values in the range 0x00-0x7f are written out.
 173 
 174 
 175        If LC_COLLATE or keywords in the category LC_COLLATE are specified, no
 176        actual values are written out.
 177 
 178 
 179 
 180                                November 28, 2017                     LOCALE(1)