--- - branch: netbsd-9 date: Mon Feb 21 17:58:11 UTC 2022 files: - new: 1.55.2.1 old: '1.55' path: src/bin/sh/histedit.c pathrev: src/bin/sh/histedit.c@1.55.2.1 type: modified id: 20220221T175811Z.84d97badbfd8cbb0b15e7116a18dd0f61d78fbd4 log: "Pull up following revision(s) (requested by kre in ticket #1429):\n\n\tbin/sh/histedit.c: revision 1.60\n\nAfter (a few days short of) 21 years, revert 1.25, which did nothing except\nmake the -e option to \"fc\" fail to work (the commit message was about some\nother changes entirely, so I an only assume this was committed by mistake).\n\nIt says a lot about the use of the fc command that no-one noticed that\nthis did not work properly for all this time.\n\nInternally in sh, it is possible for built in commands to use either\ngetopt(3) (from libc) or the much simpler internal shell nextopt() routine\nfor option (flag) parsing. However it makes no sense to use getopt()\nand then access a global variable set only by nextopt() instead of the\none getopt() sets (which is what the code had used previously, forever).\n\nUse the correct variable again.\n\nXXX pullup -9 -8 (-7 -6 -5 ...)\n" module: src subject: 'CVS commit: [netbsd-9] src/bin/sh' unixtime: '1645466291' user: martin