Subject: bug#57795: FIXME about save-match-data in shell-command

From: Stefan Kangas <[email-masked]>
Date: Wed, 14 Sep 2022 00:36:30 -0700

Severity: wishlist

In `shell-command', we have the following comment:

	;; Preserve the match data in case called from a program.
        ;; FIXME: It'd be ridiculous for an Elisp function to call
        ;; shell-command and assume that it won't mess the match-data!

I think we should decide to either get rid of the FIXME, or to take the
plunge and remove `save-match-data'.  (Note that the latter has been
there since 1995.)