Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Janek Mi Newsgroups: gnu.bash.bug Subject: Filename expansion bug Date: Thu, 8 Aug 2019 16:33:16 +0200 Lines: 23 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: usenet.stanford.edu 1565274813 28358 209.51.188.17 (8 Aug 2019 14:33:33 GMT) X-Complaints-To: action@cs.stanford.edu Cc: marcin.slusarz@gmail.com To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=XzKLO2JhK1/03l7Iz7/k38OD1NLIh+SUvLxqSNQJ/NQ=; b=kG/wjRnWj9HynKz6rl0TIfK4TirXNt0A8QibDmkB6h4mmk16YJ13Dp520J6WGGku1o YNNEvsSFojtZdfrSvUUtB1LZmfNHdq7niWo2glZeAu6WK8SeD2Fy9ErGYegYZe73EOFC qPCoU8TUZKnefWeXjplojz8KmYI6rG/L+IjwQ3jkucoiZgFWKHqLCxv0AQu0DObZC99y 2PBIoRgAOoU1bAYOVRIll7ug6l3ABfF9JLOgm7vtgafvPINGQ8mAucvE+1ejYxWCIVA3 nhLzyD9ID3lFCUvfcP3NRx41eRTSVV6sKpw9EG3XDUvRq/m8EulwMmA8B9S86pP9KNVE dX7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=XzKLO2JhK1/03l7Iz7/k38OD1NLIh+SUvLxqSNQJ/NQ=; b=lfvHYWS2QmEGWElcFVUk8z84vDUldOUvXECmhGkZ1TxwffSy5Xn1Y0aOsQm5VwS6rB 7/SG6wmc8SMy4yH/5C4WvBTm1wnGamzHNrdnW5g71QqSjpb+5JQyfJl3anKFK4qjntwn kviNoui41sZiVMTj5rhtXvwhJT72B2EWKdv0RiQ+oaEto7OOCH+BVB3mA8XO+FEiT3kM UGX7eOLTdhjXBmO1v1AVwztQky+kqtqRVWkVf/Pa28YVwmJpy8thOn6efu7BY6ABbT/M Q5OuWf5fIlfk0fCFaJKtoY3yzeWgfQOTsbz3DtrZfSXgCyz5REP8WUkkl79uF46Vf62u HrYw== X-Gm-Message-State: APjAAAUho4JHiZadhzgNI94AQ9Wp35yWiIP1YxcMnzgzgEmPI7CbkidA 9igTjaudCGGoP5k6cuEWgte5rYixXX6LZlUy7x15MX9u5Qs= X-Google-Smtp-Source: APXvYqxxvTeKHeRF370/BSp/SAvR6HtsnDTo//BR9EA51BjeTlcFbE1UkZXv7imIY95UbCuhs8bJygLR/3IDea0leOs= X-Received: by 2002:a9d:4d05:: with SMTP id n5mr12455814otf.361.1565274807446; Thu, 08 Aug 2019 07:33:27 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::334 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: Xref: csiph.com gnu.bash.bug:15311 For some time in my scripts I was using something like this: ```shell #!/usr/bin/env bash shopt -s failglob command="echo xyz\(\)" $command ``` And it was working fine. But somewhere between bash version 4 and 5 I realized it generates an error: no match: xyz\(\) with exit code equal 1. If I understand correctly \( character should not trigger filename expansion. Any ideas? Appendix: ```eval '$command'``` is causing the same issue whereas ```eval "$command"``` works the same as bash 4 without filename expansion. Changing the quotation mark character makes a huge difference.