git: 21817992b331 - main - ncurses: vendor import version 6.5

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Thu, 20 Jun 2024 11:27:45 UTC
The branch main has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=21817992b3314c908ab50f0bb88d2ee750b9c4ac

commit 21817992b3314c908ab50f0bb88d2ee750b9c4ac
Merge: 6eeedf35c3ec 24fa7a5107c5
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-06-20 11:15:14 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-06-20 11:26:22 +0000

    ncurses: vendor import version 6.5

 contrib/ncurses/ANNOUNCE                           |   909 +-
 contrib/ncurses/AUTHORS                            |     6 +-
 contrib/ncurses/COPYING                            |     4 +-
 contrib/ncurses/INSTALL                            |   316 +-
 contrib/ncurses/MANIFEST                           |    15 +-
 contrib/ncurses/Makefile.in                        |    25 +-
 contrib/ncurses/Makefile.os2                       |     6 +-
 contrib/ncurses/NEWS                               |  1177 ++-
 contrib/ncurses/README                             |    41 +-
 contrib/ncurses/README.emx                         |     8 +-
 contrib/ncurses/VERSION                            |     2 +-
 contrib/ncurses/aclocal.m4                         |  1687 +++-
 contrib/ncurses/announce.html.in                   |  1609 ++-
 contrib/ncurses/config.guess                       |  1263 ++-
 contrib/ncurses/config.sub                         |   828 +-
 contrib/ncurses/configure                          |  8956 +++++++++-------
 contrib/ncurses/configure.in                       |   310 +-
 contrib/ncurses/dist.mk                            |    25 +-
 contrib/ncurses/doc/hackguide.doc                  |    48 +-
 .../doc/html/NCURSES-Programming-HOWTO.html        |  7415 --------------
 contrib/ncurses/doc/html/announce.html             |  2220 ----
 contrib/ncurses/doc/html/hackguide.html            |   969 --
 contrib/ncurses/doc/html/ncurses-intro.html        |  3446 -------
 contrib/ncurses/doc/ncurses-intro.doc              |   182 +-
 contrib/ncurses/form/Makefile.in                   |    15 +-
 contrib/ncurses/form/READ.ME                       |     8 +-
 contrib/ncurses/form/fld_def.c                     |    10 +-
 contrib/ncurses/form/fld_ftchoice.c                |     6 +-
 contrib/ncurses/form/fld_ftlink.c                  |    10 +-
 contrib/ncurses/form/fld_info.c                    |    12 +-
 contrib/ncurses/form/fld_just.c                    |    12 +-
 contrib/ncurses/form/fld_link.c                    |    12 +-
 contrib/ncurses/form/fld_max.c                     |     8 +-
 contrib/ncurses/form/fld_move.c                    |     8 +-
 contrib/ncurses/form/fld_opts.c                    |    24 +-
 contrib/ncurses/form/fld_pad.c                     |    12 +-
 contrib/ncurses/form/fld_page.c                    |    14 +-
 contrib/ncurses/form/fld_stat.c                    |    14 +-
 contrib/ncurses/form/fld_type.c                    |    12 +-
 contrib/ncurses/form/fld_user.c                    |    12 +-
 contrib/ncurses/form/form.h                        |     6 +-
 contrib/ncurses/form/form.priv.h                   |    18 +-
 contrib/ncurses/form/frm_cursor.c                  |     8 +-
 contrib/ncurses/form/frm_data.c                    |    23 +-
 contrib/ncurses/form/frm_def.c                     |     8 +-
 contrib/ncurses/form/frm_driver.c                  |    51 +-
 contrib/ncurses/form/frm_opts.c                    |    28 +-
 contrib/ncurses/form/frm_page.c                    |    12 +-
 contrib/ncurses/form/frm_req_name.c                |    15 +-
 contrib/ncurses/form/frm_scale.c                   |     8 +-
 contrib/ncurses/form/frm_sub.c                     |    14 +-
 contrib/ncurses/form/frm_user.c                    |    12 +-
 contrib/ncurses/form/frm_win.c                     |    14 +-
 contrib/ncurses/form/fty_enum.c                    |    46 +-
 contrib/ncurses/form/fty_generic.c                 |     6 +-
 contrib/ncurses/form/fty_int.c                     |    44 +-
 contrib/ncurses/form/fty_ipv4.c                    |    16 +-
 contrib/ncurses/form/fty_num.c                     |    20 +-
 contrib/ncurses/form/fty_regex.c                   |    35 +-
 contrib/ncurses/form/llib-lform                    |   192 +-
 contrib/ncurses/form/llib-lformt                   |   192 +-
 contrib/ncurses/form/llib-lformtw                  |   198 +-
 contrib/ncurses/form/llib-lformw                   |   198 +-
 contrib/ncurses/include/Caps                       |   303 +-
 contrib/ncurses/include/Caps-ncurses               |    21 +-
 contrib/ncurses/include/Caps.aix4                  |   297 +-
 contrib/ncurses/include/Caps.hpux11                |   301 +-
 contrib/ncurses/include/Caps.keys                  |   298 +-
 contrib/ncurses/include/Caps.osf1r5                |   222 +-
 contrib/ncurses/include/Caps.uwin                  |   225 +-
 contrib/ncurses/include/MKkey_defs.sh              |    15 +-
 contrib/ncurses/include/MKncurses_def.sh           |     6 +-
 contrib/ncurses/include/MKterm.h.awk.in            |    39 +-
 contrib/ncurses/include/Makefile.in                |    19 +-
 contrib/ncurses/include/capdefaults.c              |     6 +-
 contrib/ncurses/include/curses.events              |     4 +-
 contrib/ncurses/include/curses.h.in                |   116 +-
 contrib/ncurses/include/curses.tail                |    16 +-
 contrib/ncurses/include/curses.wide                |     6 +-
 contrib/ncurses/include/edit_cfg.sh                |    19 +-
 contrib/ncurses/include/headers                    |     8 +-
 contrib/ncurses/include/nc_access.h                |    80 +
 contrib/ncurses/include/nc_alloc.h                 |    17 +-
 contrib/ncurses/include/nc_mingw.h                 |    13 +-
 contrib/ncurses/include/nc_string.h                |     8 +-
 contrib/ncurses/include/nc_tparm.h                 |     5 +-
 contrib/ncurses/include/nc_win32.h                 |     8 +-
 contrib/ncurses/include/ncurses_defs               |    30 +-
 contrib/ncurses/include/ncurses_dll.h.in           |    10 +-
 contrib/ncurses/include/ncurses_mingw.h            |    14 +-
 contrib/ncurses/include/term_entry.h               |    29 +-
 contrib/ncurses/include/termcap.h.in               |    10 +-
 contrib/ncurses/include/tic.h                      |    47 +-
 contrib/ncurses/include/win32_curses.h             |     6 +-
 contrib/ncurses/install-sh                         |   671 +-
 contrib/ncurses/man/MKada_config.in                |   139 +-
 contrib/ncurses/man/MKncu_config.in                |   111 +-
 contrib/ncurses/man/MKterminfo.sh                  |    18 +-
 contrib/ncurses/man/Makefile.in                    |    23 +-
 contrib/ncurses/man/captoinfo.1m                   |   274 +-
 contrib/ncurses/man/clear.1                        |   223 +-
 contrib/ncurses/man/curs_add_wch.3x                |   403 +-
 contrib/ncurses/man/curs_add_wchstr.3x             |   115 +-
 contrib/ncurses/man/curs_addch.3x                  |   579 +-
 contrib/ncurses/man/curs_addchstr.3x               |   114 +-
 contrib/ncurses/man/curs_addstr.3x                 |   156 +-
 contrib/ncurses/man/curs_addwstr.3x                |   157 +-
 contrib/ncurses/man/curs_attr.3x                   |   667 +-
 contrib/ncurses/man/curs_beep.3x                   |    38 +-
 contrib/ncurses/man/curs_bkgd.3x                   |   267 +-
 contrib/ncurses/man/curs_bkgrnd.3x                 |   237 +-
 contrib/ncurses/man/curs_border.3x                 |   177 +-
 contrib/ncurses/man/curs_border_set.3x             |   256 +-
 contrib/ncurses/man/curs_clear.3x                  |   123 +-
 contrib/ncurses/man/curs_color.3x                  |   561 +-
 contrib/ncurses/man/curs_delch.3x                  |   117 +-
 contrib/ncurses/man/curs_deleteln.3x               |    93 +-
 contrib/ncurses/man/curs_extend.3x                 |    85 +-
 contrib/ncurses/man/curs_get_wch.3x                |   346 +-
 contrib/ncurses/man/curs_get_wstr.3x               |   273 +-
 contrib/ncurses/man/curs_getcchar.3x               |   118 +-
 contrib/ncurses/man/curs_getch.3x                  |   981 +-
 contrib/ncurses/man/curs_getstr.3x                 |   282 +-
 contrib/ncurses/man/curs_getyx.3x                  |   108 +-
 contrib/ncurses/man/curs_in_wch.3x                 |    73 +-
 contrib/ncurses/man/curs_in_wchstr.3x              |   162 +-
 contrib/ncurses/man/curs_inch.3x                   |    97 +-
 contrib/ncurses/man/curs_inchstr.3x                |   137 +-
 contrib/ncurses/man/curs_initscr.3x                |   283 +-
 contrib/ncurses/man/curs_inopts.3x                 |   724 +-
 contrib/ncurses/man/curs_ins_wch.3x                |   119 +-
 contrib/ncurses/man/curs_ins_wstr.3x               |   151 +-
 contrib/ncurses/man/curs_insch.3x                  |   122 +-
 contrib/ncurses/man/curs_insstr.3x                 |   139 +-
 contrib/ncurses/man/curs_instr.3x                  |   129 +-
 contrib/ncurses/man/curs_inwstr.3x                 |   155 +-
 contrib/ncurses/man/curs_kernel.3x                 |   278 +-
 contrib/ncurses/man/curs_legacy.3x                 |   132 +-
 contrib/ncurses/man/curs_memleaks.3x               |   113 +-
 contrib/ncurses/man/curs_mouse.3x                  |   631 +-
 contrib/ncurses/man/curs_move.3x                   |    82 +-
 contrib/ncurses/man/curs_opaque.3x                 |   242 +-
 contrib/ncurses/man/curs_outopts.3x                |   216 +-
 contrib/ncurses/man/curs_overlay.3x                |    92 +-
 contrib/ncurses/man/curs_pad.3x                    |   302 +-
 contrib/ncurses/man/curs_print.3x                  |    55 +-
 contrib/ncurses/man/curs_printw.3x                 |   263 +-
 contrib/ncurses/man/curs_refresh.3x                |   148 +-
 contrib/ncurses/man/curs_scanw.3x                  |   322 +-
 contrib/ncurses/man/curs_scr_dump.3x               |   171 +-
 contrib/ncurses/man/curs_scroll.3x                 |   156 +-
 contrib/ncurses/man/curs_slk.3x                    |   445 +-
 contrib/ncurses/man/curs_sp_funcs.3x               |   496 +-
 contrib/ncurses/man/curs_termattrs.3x              |   146 +-
 contrib/ncurses/man/curs_termcap.3x                |   701 +-
 contrib/ncurses/man/curs_terminfo.3x               |  1455 ++-
 contrib/ncurses/man/curs_threads.3x                |  1117 +-
 contrib/ncurses/man/curs_touch.3x                  |   109 +-
 contrib/ncurses/man/curs_trace.3x                  |   211 +-
 contrib/ncurses/man/curs_util.3x                   |   382 +-
 contrib/ncurses/man/curs_variables.3x              |   403 +-
 contrib/ncurses/man/curs_window.3x                 |   252 +-
 contrib/ncurses/man/default_colors.3x              |    59 +-
 contrib/ncurses/man/define_key.3x                  |    41 +-
 contrib/ncurses/man/form.3x                        |   238 +-
 contrib/ncurses/man/form_cursor.3x                 |    33 +-
 contrib/ncurses/man/form_data.3x                   |    33 +-
 contrib/ncurses/man/form_driver.3x                 |   122 +-
 contrib/ncurses/man/form_field.3x                  |    57 +-
 contrib/ncurses/man/form_field_attributes.3x       |    81 +-
 contrib/ncurses/man/form_field_buffer.3x           |    79 +-
 contrib/ncurses/man/form_field_info.3x             |    59 +-
 contrib/ncurses/man/form_field_just.3x             |    57 +-
 contrib/ncurses/man/form_field_new.3x              |    62 +-
 contrib/ncurses/man/form_field_opts.3x             |    52 +-
 contrib/ncurses/man/form_field_userptr.3x          |    35 +-
 contrib/ncurses/man/form_field_validation.3x       |   179 +-
 contrib/ncurses/man/form_fieldtype.3x              |    93 +-
 contrib/ncurses/man/form_hook.3x                   |    90 +-
 contrib/ncurses/man/form_new.3x                    |    42 +-
 contrib/ncurses/man/form_new_page.3x               |    55 +-
 contrib/ncurses/man/form_opts.3x                   |    53 +-
 contrib/ncurses/man/form_page.3x                   |    71 +-
 contrib/ncurses/man/form_post.3x                   |    43 +-
 contrib/ncurses/man/form_requestname.3x            |    44 +-
 contrib/ncurses/man/form_userptr.3x                |    34 +-
 contrib/ncurses/man/form_variables.3x              |    44 +-
 contrib/ncurses/man/form_win.3x                    |    60 +-
 contrib/ncurses/man/infocmp.1m                     |   611 +-
 contrib/ncurses/man/infotocap.1m                   |   104 +-
 contrib/ncurses/man/key_defined.3x                 |    31 +-
 contrib/ncurses/man/keybound.3x                    |    38 +-
 contrib/ncurses/man/keyok.3x                       |    33 +-
 contrib/ncurses/man/legacy_coding.3x               |    90 +-
 contrib/ncurses/man/make_sed.sh                    |    43 +-
 .../man/{man_db.renames => man_db.renames.in}      |   143 +-
 contrib/ncurses/man/manhtml.aliases                |    68 +-
 contrib/ncurses/man/manhtml.externs                |    28 +-
 contrib/ncurses/man/manlinks.sed                   |    40 +-
 contrib/ncurses/man/menu.3x                        |   210 +-
 contrib/ncurses/man/menu_attributes.3x             |   108 +-
 contrib/ncurses/man/menu_cursor.3x                 |    33 +-
 contrib/ncurses/man/menu_driver.3x                 |    57 +-
 contrib/ncurses/man/menu_format.3x                 |    44 +-
 contrib/ncurses/man/menu_hook.3x                   |    79 +-
 contrib/ncurses/man/menu_items.3x                  |    58 +-
 contrib/ncurses/man/menu_mark.3x                   |    46 +-
 contrib/ncurses/man/menu_new.3x                    |    42 +-
 contrib/ncurses/man/menu_opts.3x                   |    49 +-
 contrib/ncurses/man/menu_pattern.3x                |    45 +-
 contrib/ncurses/man/menu_post.3x                   |    46 +-
 contrib/ncurses/man/menu_requestname.3x            |    42 +-
 contrib/ncurses/man/menu_spacing.3x                |    78 +-
 contrib/ncurses/man/menu_userptr.3x                |    32 +-
 contrib/ncurses/man/menu_win.3x                    |    60 +-
 contrib/ncurses/man/mitem_current.3x               |    65 +-
 contrib/ncurses/man/mitem_name.3x                  |    38 +-
 contrib/ncurses/man/mitem_new.3x                   |    42 +-
 contrib/ncurses/man/mitem_opts.3x                  |    51 +-
 contrib/ncurses/man/mitem_userptr.3x               |    33 +-
 contrib/ncurses/man/mitem_value.3x                 |    43 +-
 contrib/ncurses/man/mitem_visible.3x               |    27 +-
 contrib/ncurses/man/ncurses.3x                     |  3402 ++++---
 contrib/ncurses/man/new_pair.3x                    |   104 +-
 contrib/ncurses/man/panel.3x                       |   349 +-
 contrib/ncurses/man/resizeterm.3x                  |   165 +-
 contrib/ncurses/man/scr_dump.5                     |   427 +-
 contrib/ncurses/man/tabs.1                         |   323 +-
 contrib/ncurses/man/term.5                         |   247 +-
 contrib/ncurses/man/term.7                         |   122 +-
 contrib/ncurses/man/term_variables.3x              |   145 +-
 contrib/ncurses/man/terminfo.head                  |   132 +-
 contrib/ncurses/man/terminfo.tail                  |  1188 ++-
 contrib/ncurses/man/tic.1m                         |   541 +-
 contrib/ncurses/man/toe.1m                         |   324 +-
 contrib/ncurses/man/tput.1                         |  1345 ++-
 contrib/ncurses/man/tset.1                         |   463 +-
 contrib/ncurses/man/user_caps.5                    |   231 +-
 contrib/ncurses/man/wresize.3x                     |    56 +-
 contrib/ncurses/menu/Makefile.in                   |    17 +-
 contrib/ncurses/menu/READ.ME                       |     6 +-
 contrib/ncurses/menu/llib-lmenu                    |    98 +-
 contrib/ncurses/menu/llib-lmenut                   |    98 +-
 contrib/ncurses/menu/llib-lmenutw                  |    98 +-
 contrib/ncurses/menu/llib-lmenuw                   |    98 +-
 contrib/ncurses/menu/m_attribs.c                   |    38 +-
 contrib/ncurses/menu/m_cursor.c                    |    10 +-
 contrib/ncurses/menu/m_driver.c                    |    18 +-
 contrib/ncurses/menu/m_format.c                    |     7 +-
 contrib/ncurses/menu/m_global.c                    |    48 +-
 contrib/ncurses/menu/m_hook.c                      |    44 +-
 contrib/ncurses/menu/m_item_cur.c                  |    16 +-
 contrib/ncurses/menu/m_item_nam.c                  |    12 +-
 contrib/ncurses/menu/m_item_new.c                  |    34 +-
 contrib/ncurses/menu/m_item_opt.c                  |    28 +-
 contrib/ncurses/menu/m_item_top.c                  |    16 +-
 contrib/ncurses/menu/m_item_val.c                  |    18 +-
 contrib/ncurses/menu/m_item_vis.c                  |     8 +-
 contrib/ncurses/menu/m_items.c                     |    18 +-
 contrib/ncurses/menu/m_new.c                       |    18 +-
 contrib/ncurses/menu/m_pad.c                       |    14 +-
 contrib/ncurses/menu/m_pattern.c                   |    12 +-
 contrib/ncurses/menu/m_post.c                      |    64 +-
 contrib/ncurses/menu/m_req_name.c                  |    15 +-
 contrib/ncurses/menu/m_scale.c                     |    10 +-
 contrib/ncurses/menu/m_sub.c                       |    12 +-
 contrib/ncurses/menu/m_win.c                       |    12 +-
 contrib/ncurses/misc/Makefile.in                   |    32 +-
 contrib/ncurses/misc/csort                         |     6 +-
 contrib/ncurses/misc/gen-pkgconfig.in              |    24 +-
 contrib/ncurses/misc/gen_edit.sh                   |    12 +-
 contrib/ncurses/misc/magic                         |     6 +-
 contrib/ncurses/misc/makedef.cmd                   |     8 +-
 contrib/ncurses/misc/makellib                      |    40 +-
 contrib/ncurses/misc/ncu2openbsd                   |  1288 +++
 contrib/ncurses/misc/ncurses-config.in             |    32 +-
 contrib/ncurses/misc/run_tic.in                    |    43 +-
 contrib/ncurses/misc/shlib                         |     8 +-
 contrib/ncurses/misc/tdlint                        |    24 +-
 contrib/ncurses/misc/terminfo.src                  | 10094 ++++++++++---------
 contrib/ncurses/mk-0th.awk                         |    12 +-
 contrib/ncurses/mk-1st.awk                         |   100 +-
 contrib/ncurses/mk-2nd.awk                         |     6 +-
 contrib/ncurses/mk-hdr.awk                         |     8 +-
 contrib/ncurses/ncurses/Makefile.in                |    50 +-
 contrib/ncurses/ncurses/README.IZ                  |     6 +-
 contrib/ncurses/ncurses/base/MKlib_gen.sh          |    23 +-
 contrib/ncurses/ncurses/base/MKunctrl.awk          |     7 +-
 contrib/ncurses/ncurses/base/key_defined.c         |     7 +-
 contrib/ncurses/ncurses/base/keyok.c               |     6 +-
 contrib/ncurses/ncurses/base/lib_addch.c           |    35 +-
 contrib/ncurses/ncurses/base/lib_addstr.c          |    32 +-
 contrib/ncurses/ncurses/base/lib_bkgd.c            |     4 +-
 contrib/ncurses/ncurses/base/lib_clreol.c          |     8 +-
 contrib/ncurses/ncurses/base/lib_color.c           |    82 +-
 contrib/ncurses/ncurses/base/lib_delwin.c          |    38 +-
 contrib/ncurses/ncurses/base/lib_dft_fgbg.c        |     8 +-
 contrib/ncurses/ncurses/base/lib_echo.c            |     8 +-
 contrib/ncurses/ncurses/base/lib_endwin.c          |    28 +-
 contrib/ncurses/ncurses/base/lib_erase.c           |     6 +-
 contrib/ncurses/ncurses/base/lib_freeall.c         |    11 +-
 contrib/ncurses/ncurses/base/lib_getch.c           |    63 +-
 contrib/ncurses/ncurses/base/lib_getstr.c          |    35 +-
 contrib/ncurses/ncurses/base/lib_insnstr.c         |     9 +-
 contrib/ncurses/ncurses/base/lib_instr.c           |     8 +-
 contrib/ncurses/ncurses/base/lib_mouse.c           |   153 +-
 contrib/ncurses/ncurses/base/lib_mvwin.c           |     8 +-
 contrib/ncurses/ncurses/base/lib_newterm.c         |     7 +-
 contrib/ncurses/ncurses/base/lib_newwin.c          |     8 +-
 contrib/ncurses/ncurses/base/lib_nl.c              |     8 +-
 contrib/ncurses/ncurses/base/lib_overlay.c         |    16 +-
 contrib/ncurses/ncurses/base/lib_pad.c             |    12 +-
 contrib/ncurses/ncurses/base/lib_refresh.c         |    24 +-
 contrib/ncurses/ncurses/base/lib_restart.c         |    17 +-
 contrib/ncurses/ncurses/base/lib_screen.c          |    61 +-
 contrib/ncurses/ncurses/base/lib_set_term.c        |    51 +-
 contrib/ncurses/ncurses/base/lib_slk.c             |     8 +-
 contrib/ncurses/ncurses/base/lib_slkinit.c         |     7 +-
 contrib/ncurses/ncurses/base/lib_slkrefr.c         |     6 +-
 contrib/ncurses/ncurses/base/lib_wattron.c         |     8 +-
 contrib/ncurses/ncurses/base/lib_window.c          |    10 +-
 contrib/ncurses/ncurses/base/new_pair.c            |     6 +-
 contrib/ncurses/ncurses/base/resizeterm.c          |    14 +-
 contrib/ncurses/ncurses/base/safe_sprintf.c        |    36 +-
 contrib/ncurses/ncurses/base/tries.c               |     7 +-
 contrib/ncurses/ncurses/base/vsscanf.c             |    11 +-
 contrib/ncurses/ncurses/base/wresize.c             |    10 +-
 contrib/ncurses/ncurses/curses.priv.h              |   508 +-
 contrib/ncurses/ncurses/llib-lncurses              |  1420 +--
 contrib/ncurses/ncurses/llib-lncursest             |  1422 +--
 contrib/ncurses/ncurses/llib-lncursestw            |  1888 ++--
 contrib/ncurses/ncurses/llib-lncursesw             |  1886 ++--
 contrib/ncurses/ncurses/llib-ltic                  |    54 +-
 contrib/ncurses/ncurses/llib-ltict                 |    54 +-
 contrib/ncurses/ncurses/llib-ltictw                |    52 +-
 contrib/ncurses/ncurses/llib-lticw                 |    52 +-
 contrib/ncurses/ncurses/llib-ltinfo                |   372 +-
 contrib/ncurses/ncurses/llib-ltinfot               |   374 +-
 contrib/ncurses/ncurses/llib-ltinfotw              |   370 +-
 contrib/ncurses/ncurses/llib-ltinfow               |   368 +-
 contrib/ncurses/ncurses/new_pair.h                 |    13 +-
 contrib/ncurses/ncurses/report_offsets.c           |    59 +-
 contrib/ncurses/ncurses/term.priv.h                |   364 +
 contrib/ncurses/ncurses/tinfo/MKcaptab.sh          |     5 +-
 contrib/ncurses/ncurses/tinfo/MKfallback.sh        |     7 +-
 contrib/ncurses/ncurses/tinfo/MKkeys_list.sh       |    10 +-
 contrib/ncurses/ncurses/tinfo/access.c             |   127 +-
 contrib/ncurses/ncurses/tinfo/add_tries.c          |     7 +-
 contrib/ncurses/ncurses/tinfo/alloc_entry.c        |   206 +-
 contrib/ncurses/ncurses/tinfo/alloc_ttype.c        |   122 +-
 contrib/ncurses/ncurses/tinfo/captoinfo.c          |    16 +-
 contrib/ncurses/ncurses/tinfo/comp_error.c         |    23 +-
 contrib/ncurses/ncurses/tinfo/comp_expand.c        |    16 +-
 contrib/ncurses/ncurses/tinfo/comp_hash.c          |    21 +-
 contrib/ncurses/ncurses/tinfo/comp_parse.c         |   140 +-
 contrib/ncurses/ncurses/tinfo/comp_scan.c          |    84 +-
 contrib/ncurses/ncurses/tinfo/db_iterator.c        |    24 +-
 contrib/ncurses/ncurses/tinfo/doalloc.c            |    11 +-
 contrib/ncurses/ncurses/tinfo/entries.c            |    30 +-
 contrib/ncurses/ncurses/tinfo/free_ttype.c         |    18 +-
 contrib/ncurses/ncurses/tinfo/init_keytry.c        |     8 +-
 contrib/ncurses/ncurses/tinfo/lib_cur_term.c       |    17 +-
 contrib/ncurses/ncurses/tinfo/lib_data.c           |    28 +-
 contrib/ncurses/ncurses/tinfo/lib_kernel.c         |    48 +-
 contrib/ncurses/ncurses/tinfo/lib_longname.c       |     7 +-
 contrib/ncurses/ncurses/tinfo/lib_napms.c          |     7 +-
 contrib/ncurses/ncurses/tinfo/lib_options.c        |     6 +-
 contrib/ncurses/ncurses/tinfo/lib_print.c          |     9 +-
 contrib/ncurses/ncurses/tinfo/lib_raw.c            |    60 +-
 contrib/ncurses/ncurses/tinfo/lib_setup.c          |   278 +-
 contrib/ncurses/ncurses/tinfo/lib_termcap.c        |     6 +-
 contrib/ncurses/ncurses/tinfo/lib_tgoto.c          |    16 +-
 contrib/ncurses/ncurses/tinfo/lib_tparm.c          |   681 +-
 contrib/ncurses/ncurses/tinfo/lib_tputs.c          |    50 +-
 contrib/ncurses/ncurses/tinfo/lib_win32con.c       |  1294 ++-
 contrib/ncurses/ncurses/tinfo/lib_win32util.c      |    28 +-
 contrib/ncurses/ncurses/tinfo/make_hash.c          |     6 +-
 contrib/ncurses/ncurses/tinfo/make_keys.c          |    12 +-
 contrib/ncurses/ncurses/tinfo/obsolete.c           |    99 +-
 contrib/ncurses/ncurses/tinfo/parse_entry.c        |    78 +-
 contrib/ncurses/ncurses/tinfo/read_entry.c         |   110 +-
 contrib/ncurses/ncurses/tinfo/read_termcap.c       |    36 +-
 contrib/ncurses/ncurses/tinfo/strings.c            |     6 +-
 contrib/ncurses/ncurses/tinfo/tinfo_driver.c       |    19 +-
 contrib/ncurses/ncurses/tinfo/trim_sgr0.c          |    14 +-
 contrib/ncurses/ncurses/tinfo/write_entry.c        |   118 +-
 contrib/ncurses/ncurses/trace/lib_trace.c          |    99 +-
 contrib/ncurses/ncurses/trace/lib_traceatr.c       |    26 +-
 contrib/ncurses/ncurses/trace/lib_tracechr.c       |    16 +-
 contrib/ncurses/ncurses/trace/lib_tracedmp.c       |     8 +-
 contrib/ncurses/ncurses/trace/trace_buf.c          |    10 +-
 contrib/ncurses/ncurses/trace/varargs.c            |    12 +-
 contrib/ncurses/ncurses/trace/visbuf.c             |    12 +-
 contrib/ncurses/ncurses/tty/MKexpanded.sh          |     9 +-
 contrib/ncurses/ncurses/tty/hardscroll.c           |    47 +-
 contrib/ncurses/ncurses/tty/hashmap.c              |    11 +-
 contrib/ncurses/ncurses/tty/lib_mvcur.c            |    59 +-
 contrib/ncurses/ncurses/tty/lib_tstp.c             |    24 +-
 contrib/ncurses/ncurses/tty/lib_twait.c            |    25 +-
 contrib/ncurses/ncurses/tty/lib_vidattr.c          |     6 +-
 contrib/ncurses/ncurses/tty/tty_update.c           |    41 +-
 contrib/ncurses/ncurses/wcwidth.h                  |    18 +-
 contrib/ncurses/ncurses/widechar/lib_add_wch.c     |    18 +-
 contrib/ncurses/ncurses/widechar/lib_cchar.c       |    14 +-
 contrib/ncurses/ncurses/widechar/lib_erasewchar.c  |    34 +-
 contrib/ncurses/ncurses/widechar/lib_get_wch.c     |     6 +-
 contrib/ncurses/ncurses/widechar/lib_get_wstr.c    |    53 +-
 contrib/ncurses/ncurses/widechar/lib_ins_wch.c     |    13 +-
 contrib/ncurses/ncurses/widechar/lib_key_name.c    |    19 +-
 contrib/ncurses/ncurses/widechar/lib_pecho_wchar.c |     6 +-
 contrib/ncurses/ncurses/widechar/lib_unget_wch.c   |     6 +-
 contrib/ncurses/ncurses/widechar/lib_vid_attr.c    |     6 +-
 contrib/ncurses/ncurses/win32con/gettimeofday.c    |     6 +-
 contrib/ncurses/ncurses/win32con/win32_driver.c    |    12 +-
 contrib/ncurses/ncurses/win32con/win_driver.c      |    97 +-
 contrib/ncurses/panel/Makefile.in                  |    17 +-
 contrib/ncurses/panel/llib-lpanel                  |    22 +-
 contrib/ncurses/panel/llib-lpanelt                 |    22 +-
 contrib/ncurses/panel/llib-lpaneltw                |    22 +-
 contrib/ncurses/panel/llib-lpanelw                 |    22 +-
 contrib/ncurses/panel/p_bottom.c                   |     6 +-
 contrib/ncurses/panel/p_new.c                      |     8 +-
 contrib/ncurses/panel/p_show.c                     |     6 +-
 contrib/ncurses/panel/p_user.c                     |     6 +-
 contrib/ncurses/progs/MKtermsort.sh                |    37 +-
 contrib/ncurses/progs/Makefile.in                  |    61 +-
 contrib/ncurses/progs/capconvert                   |    45 +-
 contrib/ncurses/progs/clear.c                      |     6 +-
 contrib/ncurses/progs/dump_entry.c                 |    86 +-
 contrib/ncurses/progs/dump_entry.h                 |     7 +-
 contrib/ncurses/progs/infocmp.c                    |   163 +-
 contrib/ncurses/progs/modules                      |    10 +-
 contrib/ncurses/progs/progs.priv.h                 |   153 +-
 contrib/ncurses/progs/reset_cmd.c                  |   305 +-
 contrib/ncurses/progs/reset_cmd.h                  |     8 +-
 contrib/ncurses/progs/tabs.c                       |   223 +-
 contrib/ncurses/progs/tic.c                        |   622 +-
 contrib/ncurses/progs/toe.c                        |    85 +-
 contrib/ncurses/progs/tparm_type.c                 |    13 +-
 contrib/ncurses/progs/tparm_type.h                 |     6 +-
 contrib/ncurses/progs/tput.c                       |   195 +-
 contrib/ncurses/progs/tset.c                       |    39 +-
 contrib/ncurses/progs/tty_settings.c               |    12 +-
 contrib/ncurses/test/back_ground.c                 |   300 -
 contrib/ncurses/test/dup_field.c                   |   394 -
 contrib/ncurses/test/move_field.c                  |   524 -
 contrib/ncurses/test/test_tparm.c                  |   388 -
 lib/ncurses/config.mk                              |     4 +-
 lib/ncurses/tinfo/Makefile                         |     5 +
 lib/ncurses/tinfo/ncurses_cfg.h                    |    60 +-
 usr.bin/ncurses/Makefile                           |     6 +-
 451 files changed, 48795 insertions(+), 50440 deletions(-)

diff --cc contrib/ncurses/include/nc_access.h
index 000000000000,1d2fb0a4ec5e..1d2fb0a4ec5e
mode 000000,100644..100644
--- a/contrib/ncurses/include/nc_access.h
+++ b/contrib/ncurses/include/nc_access.h
diff --cc contrib/ncurses/install-sh
index 462fa9c3d57b,000000000000..ec298b537402
mode 100755,000000..100755
--- a/contrib/ncurses/install-sh
+++ b/contrib/ncurses/install-sh
@@@ -1,294 -1,0 +1,541 @@@
- #! /bin/sh
- #
++#!/bin/sh
 +# install - install a program, script, or datafile
- #
++
++scriptversion=2020-11-14.01; # UTC
++
 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
 +# later released in X11R6 (xc/config/util/install.sh) with the
 +# following copyright and license.
 +#
 +# Copyright (C) 1994 X Consortium
 +#
 +# Permission is hereby granted, free of charge, to any person obtaining a copy
 +# of this software and associated documentation files (the "Software"), to
 +# deal in the Software without restriction, including without limitation the
 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 +# sell copies of the Software, and to permit persons to whom the Software is
 +# furnished to do so, subject to the following conditions:
 +#
 +# The above copyright notice and this permission notice shall be included in
 +# all copies or substantial portions of the Software.
 +#
 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 +#
 +# Except as contained in this notice, the name of the X Consortium shall not
 +# be used in advertising or otherwise to promote the sale, use or other deal-
 +# ings in this Software without prior written authorization from the X Consor-
 +# tium.
 +#
 +#
 +# FSF changes to this file are in the public domain.
 +#
 +# Calling this script install-sh is preferred over install.sh, to prevent
- # `make' implicit rules from creating a file called install from it
++# 'make' implicit rules from creating a file called install from it
 +# when there is no Makefile.
 +#
 +# This script is compatible with the BSD install script, but was written
- # from scratch.  It can only install one file at a time, a restriction
- # shared with many OS's install programs.
++# from scratch.
++
++tab='	'
++nl='
++'
++IFS=" $tab$nl"
++
++# Set DOITPROG to "echo" to test this script.
 +
++doit=${DOITPROG-}
++doit_exec=${doit:-exec}
 +
- # set DOITPROG to echo to test this script
++# Put in absolute file names if you don't have them in your path;
++# or use environment vars.
 +
- # Don't use :- since 4.3BSD and earlier shells don't like it.
- doit="${DOITPROG-}"
++chgrpprog=${CHGRPPROG-chgrp}
++chmodprog=${CHMODPROG-chmod}
++chownprog=${CHOWNPROG-chown}
++cmpprog=${CMPPROG-cmp}
++cpprog=${CPPROG-cp}
++mkdirprog=${MKDIRPROG-mkdir}
++mvprog=${MVPROG-mv}
++rmprog=${RMPROG-rm}
++stripprog=${STRIPPROG-strip}
 +
++posix_mkdir=
 +
- # put in absolute paths if you don't have them in your path; or use env. vars.
++# Desired mode of installed file.
++mode=0755
 +
- mvprog="${MVPROG-mv}"
- cpprog="${CPPROG-cp}"
- chmodprog="${CHMODPROG-chmod}"
- chownprog="${CHOWNPROG-chown}"
- chgrpprog="${CHGRPPROG-chgrp}"
- stripprog="${STRIPPROG-strip}"
- rmprog="${RMPROG-rm}"
- mkdirprog="${MKDIRPROG-mkdir}"
++# Create dirs (including intermediate dirs) using mode 755.
++# This is like GNU 'install' as of coreutils 8.32 (2020).
++mkdir_umask=22
 +
- transformbasename=""
- transform_arg=""
- instcmd="$mvprog"
- chmodcmd="$chmodprog 0755"
- chowncmd=""
- chgrpcmd=""
- stripcmd=""
++backupsuffix=
++chgrpcmd=
++chmodcmd=$chmodprog
++chowncmd=
++mvcmd=$mvprog
 +rmcmd="$rmprog -f"
- mvcmd="$mvprog"
- src=""
- dst=""
- dir_arg=""
- 
- while [ x"$1" != x ]; do
-     case $1 in
- 	-c) instcmd=$cpprog
- 	    shift
- 	    continue;;
- 
- 	-d) dir_arg=true
- 	    shift
- 	    continue;;
- 
- 	-m) chmodcmd="$chmodprog $2"
- 	    shift
- 	    shift
- 	    continue;;
- 
- 	-o) chowncmd="$chownprog $2"
- 	    shift
- 	    shift
- 	    continue;;
- 
- 	-g) chgrpcmd="$chgrpprog $2"
- 	    shift
- 	    shift
- 	    continue;;
- 
- 	-s) stripcmd=$stripprog
- 	    shift
- 	    continue;;
- 
- 	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
- 	    shift
- 	    continue;;
- 
- 	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
- 	    shift
- 	    continue;;
- 
- 	*)  if [ x"$src" = x ]
- 	    then
- 		src=$1
- 	    else
- 		# this colon is to work around a 386BSD /bin/sh bug
- 		:
- 		dst=$1
- 	    fi
- 	    shift
- 	    continue;;
-     esac
- done
++stripcmd=
 +
- if [ x"$src" = x ]
- then
- 	echo "$0: no input file specified" >&2
- 	exit 1
- else
- 	:
- fi
++src=
++dst=
++dir_arg=
++dst_arg=
 +
- if [ x"$dir_arg" != x ]; then
- 	dst=$src
- 	src=""
++copy_on_change=false
++is_target_a_directory=possibly
 +
- 	if [ -d "$dst" ]; then
- 		instcmd=:
- 		chmodcmd=""
- 	else
- 		instcmd=$mkdirprog
- 	fi
- else
++usage="\
++Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
++   or: $0 [OPTION]... SRCFILES... DIRECTORY
++   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
++   or: $0 [OPTION]... -d DIRECTORIES...
 +
- # Waiting for this to be detected by the "$instcmd $src $dsttmp" command
- # might cause directories to be created, which would be especially bad
- # if $src (and thus $dsttmp) contains '*'.
++In the 1st form, copy SRCFILE to DSTFILE.
++In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
++In the 4th, create DIRECTORIES.
 +
- 	if [ -f "$src" ] || [ -d "$src" ]
- 	then
- 		:
- 	else
- 		echo "$0: $src does not exist" >&2
- 		exit 1
- 	fi
++Options:
++     --help     display this help and exit.
++     --version  display version info and exit.
 +
- 	if [ x"$dst" = x ]
- 	then
- 		echo "$0: no destination specified" >&2
- 		exit 1
- 	else
- 		:
- 	fi
++  -c            (ignored)
++  -C            install only if different (preserve data modification time)
++  -d            create directories instead of installing files.
++  -g GROUP      $chgrpprog installed files to GROUP.
++  -m MODE       $chmodprog installed files to MODE.
++  -o USER       $chownprog installed files to USER.
++  -p            pass -p to $cpprog.
++  -s            $stripprog installed files.
++  -S SUFFIX     attempt to back up existing files, with suffix SUFFIX.
++  -t DIRECTORY  install into DIRECTORY.
++  -T            report an error if DSTFILE is a directory.
 +
- # If destination is a directory, append the input filename; if your system
- # does not like double slashes in filenames, you may need to add some logic
++Environment variables override the default commands:
++  CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
++  RMPROG STRIPPROG
 +
- 	if [ -d "$dst" ]
- 	then
- 		dst=$dst/`basename "$src"`
- 	else
- 		:
- 	fi
- fi
++By default, rm is invoked with -f; when overridden with RMPROG,
++it's up to you to specify -f if you want it.
 +
- ## this sed command emulates the dirname command
- dstdir=`echo "$dst" | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
++If -S is not specified, no backups are attempted.
 +
- # Make sure that the destination directory exists.
- #  this part is taken from Noah Friedman's mkinstalldirs script
++Email bug reports to bug-automake@gnu.org.
++Automake home page: https://www.gnu.org/software/automake/
++"
 +
- # Skip lots of stat calls in the usual case.
- if [ ! -d "$dstdir" ]; then
- defaultIFS='
- 	'
- IFS="${IFS-$defaultIFS}"
++while test $# -ne 0; do
++  case $1 in
++    -c) ;;
 +
- oIFS=$IFS
- # Some sh's can't handle IFS=/ for some reason.
- IFS='%'
- set - `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
- IFS=$oIFS
++    -C) copy_on_change=true;;
 +
- pathcomp=''
++    -d) dir_arg=true;;
 +
- while [ $# -ne 0 ] ; do
- 	pathcomp=$pathcomp$1
- 	shift
++    -g) chgrpcmd="$chgrpprog $2"
++        shift;;
 +
- 	if [ ! -d "$pathcomp" ] ;
-         then
- 		$mkdirprog "$pathcomp"
- 	else
- 		:
- 	fi
++    --help) echo "$usage"; exit $?;;
 +
- 	pathcomp=$pathcomp/
- done
- fi
++    -m) mode=$2
++        case $mode in
++          *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
++            echo "$0: invalid mode: $mode" >&2
++            exit 1;;
++        esac
++        shift;;
 +
- if [ x"$dir_arg" != x ]
- then
- 	$doit $instcmd "$dst" &&
++    -o) chowncmd="$chownprog $2"
++        shift;;
 +
- 	if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dst"; else : ; fi &&
- 	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dst"; else : ; fi &&
- 	if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dst"; else : ; fi &&
- 	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dst"; else : ; fi
- else
++    -p) cpprog="$cpprog -p";;
 +
- # If we're going to rename the final executable, determine the name now.
++    -s) stripcmd=$stripprog;;
 +
- 	if [ x"$transformarg" = x ]
- 	then
- 		dstfile=`basename "$dst"`
- 	else
- 		dstfile=`basename "$dst" $transformbasename |
- 			sed $transformarg`$transformbasename
- 	fi
++    -S) backupsuffix="$2"
++        shift;;
 +
- # don't allow the sed command to completely eliminate the filename
++    -t)
++        is_target_a_directory=always
++        dst_arg=$2
++        # Protect names problematic for 'test' and other utilities.
++        case $dst_arg in
++          -* | [=\(\)!]) dst_arg=./$dst_arg;;
++        esac
++        shift;;
 +
- 	if [ x"$dstfile" = x ]
- 	then
- 		dstfile=`basename "$dst"`
- 	else
- 		:
- 	fi
++    -T) is_target_a_directory=never;;
 +
- # Make a couple of temp file names in the proper directory.
++    --version) echo "$0 $scriptversion"; exit $?;;
 +
- 	dsttmp=$dstdir/#inst.$$#
- 	rmtmp=$dstdir/#rm.$$#
++    --) shift
++        break;;
 +
- # Trap to clean up temp files at exit.
++    -*) echo "$0: invalid option: $1" >&2
++        exit 1;;
 +
- 	trap 'status=$?; rm -f "$dsttmp" "$rmtmp" && exit $status' 0
- 	trap '(exit $?); exit' 1 2 13 15
++    *)  break;;
++  esac
++  shift
++done
 +
- # Move or copy the file name to the temp name
++# We allow the use of options -d and -T together, by making -d
++# take the precedence; this is for compatibility with GNU install.
 +
- 	$doit $instcmd "$src" "$dsttmp" &&
++if test -n "$dir_arg"; then
++  if test -n "$dst_arg"; then
++    echo "$0: target directory not allowed when installing a directory." >&2
++    exit 1
++  fi
++fi
 +
- # and set any options; do chmod last to preserve setuid bits
++if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
++  # When -d is used, all remaining arguments are directories to create.
++  # When -t is used, the destination is already specified.
++  # Otherwise, the last argument is the destination.  Remove it from $@.
++  for arg
++  do
++    if test -n "$dst_arg"; then
++      # $@ is not empty: it contains at least $arg.
++      set fnord "$@" "$dst_arg"
++      shift # fnord
++    fi
++    shift # arg
++    dst_arg=$arg
++    # Protect names problematic for 'test' and other utilities.
++    case $dst_arg in
++      -* | [=\(\)!]) dst_arg=./$dst_arg;;
++    esac
++  done
++fi
 +
- # If any of these fail, we abort the whole thing.  If we want to
- # ignore errors from any of these, just make sure not to ignore
- # errors from the above "$doit $instcmd $src $dsttmp" command.
++if test $# -eq 0; then
++  if test -z "$dir_arg"; then
++    echo "$0: no input file specified." >&2
++    exit 1
++  fi
++  # It's OK to call 'install-sh -d' without argument.
++  # This can happen when creating conditional directories.
++  exit 0
++fi
 +
- 	if [ x"$chowncmd" != x ]; then $doit $chowncmd "$dsttmp"; else :;fi &&
- 	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd "$dsttmp"; else :;fi &&
- 	if [ x"$stripcmd" != x ]; then $doit $stripcmd "$dsttmp"; else :;fi &&
- 	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd "$dsttmp"; else :;fi &&
++if test -z "$dir_arg"; then
++  if test $# -gt 1 || test "$is_target_a_directory" = always; then
++    if test ! -d "$dst_arg"; then
++      echo "$0: $dst_arg: Is not a directory." >&2
++      exit 1
++    fi
++  fi
++fi
 +
- # Now remove or move aside any old file at destination location.  We try this
- # two ways since rm can't unlink itself on some systems and the destination
- # file might be busy for other reasons.  In this case, the final cleanup
- # might fail but the new file should still install successfully.
++if test -z "$dir_arg"; then
++  do_exit='(exit $ret); exit $ret'
++  trap "ret=129; $do_exit" 1
++  trap "ret=130; $do_exit" 2
++  trap "ret=141; $do_exit" 13
++  trap "ret=143; $do_exit" 15
++
++  # Set umask so as not to create temps with too-generous modes.
++  # However, 'strip' requires both read and write access to temps.
++  case $mode in
++    # Optimize common cases.
++    *644) cp_umask=133;;
++    *755) cp_umask=22;;
++
++    *[0-7])
++      if test -z "$stripcmd"; then
++        u_plus_rw=
++      else
++        u_plus_rw='% 200'
++      fi
++      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
++    *)
++      if test -z "$stripcmd"; then
++        u_plus_rw=
++      else
++        u_plus_rw=,u+rw
++      fi
++      cp_umask=$mode$u_plus_rw;;
++  esac
++fi
 +
- {
- 	if [ -f "$dstdir/$dstfile" ]
++for src
++do
++  # Protect names problematic for 'test' and other utilities.
++  case $src in
++    -* | [=\(\)!]) src=./$src;;
++  esac
++
++  if test -n "$dir_arg"; then
++    dst=$src
++    dstdir=$dst
++    test -d "$dstdir"
++    dstdir_status=$?
++    # Don't chown directories that already exist.
++    if test $dstdir_status = 0; then
++      chowncmd=""
++    fi
++  else
++
++    # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
++    # might cause directories to be created, which would be especially bad
++    # if $src (and thus $dsttmp) contains '*'.
++    if test ! -f "$src" && test ! -d "$src"; then
++      echo "$0: $src does not exist." >&2
++      exit 1
++    fi
++
++    if test -z "$dst_arg"; then
++      echo "$0: no destination specified." >&2
++      exit 1
++    fi
++    dst=$dst_arg
++
++    # If destination is a directory, append the input filename.
++    if test -d "$dst"; then
++      if test "$is_target_a_directory" = never; then
++        echo "$0: $dst_arg: Is a directory" >&2
++        exit 1
++      fi
++      dstdir=$dst
++      dstbase=`basename "$src"`
++      case $dst in
++	*/) dst=$dst$dstbase;;
++	*)  dst=$dst/$dstbase;;
++      esac
++      dstdir_status=0
++    else
++      dstdir=`dirname "$dst"`
++      test -d "$dstdir"
++      dstdir_status=$?
++    fi
*** 1763 LINES SKIPPED ***