Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Bruce Lilly Newsgroups: gnu.bash.bug Subject: Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work Date: Sat, 29 Aug 2020 15:54:12 -0400 Lines: 16 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 1598730874 1939 209.51.188.17 (29 Aug 2020 19:54:34 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Koichi Murase Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ox5wv5mrwnK3BLp+9tL2sNLBvVnHCPYb+s2UEnfKQyA=; b=gxSToQMemcOWXUYAdsCoR4eiQ/YWo73TUyW2p0hwm980qM5D/CU/bLxli1dGo7MoAz 1imEFx/Y1loWQGvZxKNmOpZu/MkKy+NuQ221niOQZZdEBKxMlYhxOTCbMrMd+vS8VuX7 vhNP+b3x2plWw5GuSYpdfHs+s61gzmHZmpCTK1cwZrKHtt5hD/eFsqJy0K79CBCGjtTe LMw0ev1ZR9q3+eTjIjTbcn6hOBbERSwnZvfoTkxMQbkiTYfC7qXdm4n62ZlV9sv3ZDX7 VQC2/CfTzC7DlLT9/jhbtNvnP1TFXkHvtUEn8YFpdIXowxhdXKZZp1o86yOLsVr94Etv UCDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ox5wv5mrwnK3BLp+9tL2sNLBvVnHCPYb+s2UEnfKQyA=; b=RuXsiFdL2GOosY4WzTo9NHu8U+9rqA3vtVR6cW6bOEHqKm7U/5IJsJJtPVGXQuCmQh 2mUVpBvzCxmL9jZKaUrdavwm+Lc8v3QE6L4bYKnASILypkpw1+3hdszBkqY1zQOHhTUy pKHvyo6n1V/wN3ptd0n8iYiT2ZMYXsjzMAr9BVBxXobfJn31VALfYaKo5mQsrf7GS+Ir RbvK0L2/WA5G2se/azpxwDAeIEywWtrmpPQ6gYFqAbqu5cob6+4fmtXrVP16bskn1i83 IT3LOq9kBeyn1Sffmq+Jq9F51oGtD0SIFrJec/UGzfQjy1BmCJG008XXv/m2i6sjlCaX LC7A== X-Gm-Message-State: AOAM532aomtBhrawUdoHbnpzgfriSg5SrWnGIZP8DEYUnY0T06biXoYm LLa+7eaxC5+jdLyWkj1YLI2MmRkiu6vh1EB8OL8= X-Google-Smtp-Source: ABdhPJxytmy45n1s52Z2Xe7E2OPEsU7q9DutyjdqgNiY8HRtYf/D+7SL4BTxWSlHRCINHN+86yrANba3Ol1BTFqwF20= X-Received: by 2002:a92:1510:: with SMTP id v16mr3782247ilk.241.1598730866595; Sat, 29 Aug 2020 12:54:26 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::12f; envelope-from=bruce.lilly@gmail.com; helo=mail-il1-x12f.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:16855 On Sat, Aug 29, 2020, 15:40 Koichi Murase wrote: > Don't worry. In this case, the GPL doesn't apply. Please read the > following Q&A. > > https://www.gnu.org/licenses/gpl-faq.en.html#IfInterpreterIsGPL > > Even if your original `shellbug' is licensed under something other, > and it prohibits to make it public, you can still create another > script to reproduce the same issue. [...] > It's a bit more complicated than that; if, for example, some excerpt ended up in regression tests, there would be a question about whether or not there was a copyright violation. As I understand the GPL (IANAL), it requires all parts of a "work" to be GPL'd, and that wouldn't be possible for any parts of the script that ended up in bash regression tests.