--- - branch: netbsd-8 date: Thu Feb 24 10:07:47 UTC 2022 files: - new: 1.48.8.3 old: 1.48.8.2 path: src/bin/sh/histedit.c pathrev: src/bin/sh/histedit.c@1.48.8.3 type: modified id: 20220224T100747Z.63e76f660482d0030cc8e22633a17635be53131c log: "Pull up following revision(s) (requested by kre in ticket #1736):\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-8] src/bin/sh' unixtime: '1645697267' user: martin