Path: csiph.com!2.eu.feeder.erje.net!feeder.erje.net!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: "Todd A. Jacobs" Newsgroups: gnu.bash.bug Subject: echo builtin doesn't handle end-of-options flag Date: Sun, 16 Aug 2020 11:47:56 -0400 Lines: 27 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1597594275 5269 209.51.188.17 (16 Aug 2020 16:11:15 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codegnome-com.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=evRIXilAnUUgQQVNe506ld6cuwNNjrX30OPctjIbESU=; b=P80gjK6wgPIjYMCtueuykagW0yCcwZWmVAgcbqTRENx2l20Ac993sdZhc9c/qAvhpg TWf/E7VxmdzsmkO6pVSGqNw0xPLmbmRLgNRgZ8QLvZdVtkhEYhCJRtOY3OvMApjO1aqx CouVYBhBkBaTTBgch5MLncLKMHuy8BgbK6d0gqz2Hrf5kw1VgnT1NfYJynOUPn/VK6jQ qBO45OlfEV3Nh1ZTuJroO3ex75CqQwSZWCqLqox1hS0FGNs3Y08CqHALVuRu5M0ZYFTE TGsQTqCr1ZM5C/7iCrifCUze71uIk0rLCIo6ey+ooValZEtNNfLNLkVthIv+TajtBNbC Zsdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=evRIXilAnUUgQQVNe506ld6cuwNNjrX30OPctjIbESU=; b=ib2G6fQKx/w1zpAhR+IAj/NJ0QhU4gAm9HAmBcoMBKlHgOcDnUd9uZYNqT3fMQ3CW8 F0xPGzxVtbXZ5zfHNOtT/N1Gk2nKi43aw0EclxqjLrLl2qsAcbZyWnh2FztocrOasROo L9y6Lr+gKoiKnAPWnKWxd7OPiBfqwXkEkjju1CNqTTkomOXi7Rg3wMKjHOU++bYSbIec IqCnwK4mixTR/O48gZPnruzetQn1AULRgA6SureKVe7Usxo138ziYtPxg/Nx1HdFF/6+ QOSp+T92sN7qrMDSi1eScCb6oyChXy6DX4UdJWTwEZHYw2xSglnMru8nppKirmgDYhsv NUbQ== X-Gm-Message-State: AOAM530r2NIreEeX5PJsSwDfFqYwV47Fk5dyHYwWQqVCw0Af2CBhUhct cpfFi5e6GN2sCGBTziIdum8ybnviwCqoub83SIw= X-Google-Smtp-Source: ABdhPJya21vQMiPvXwi+povp3PrXf5QRU6XUZ2j0Gl9y0Ff56K1NoecUPXwhJsQCDBuJOraTJdrgvg== X-Received: by 2002:a05:620a:5a7:: with SMTP id q7mr9721071qkq.298.1597592877915; Sun, 16 Aug 2020 08:47:57 -0700 (PDT) X-Google-Original-From: "Todd A. Jacobs" X-Mailer: Apple Mail (2.3608.120.23.2.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::72f; envelope-from=tjacobs@codegnome.com; helo=mail-qk1-x72f.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: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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-Mailman-Approved-At: Sun, 16 Aug 2020 12:11:13 -0400 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:16754 Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin19.5.0 Compiler: clang Compilation CFLAGS: -DSSH_SOURCE_BASHRC -Wno-parentheses = -Wno-format-security uname output: Darwin titan.local 19.6.0 Darwin Kernel Version 19.6.0: = Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 = x86_64 Machine Type: x86_64-apple-darwin19.5.0 Bash Version: 5.0 Patch Level: 18 Release Status: release Description: The echo builtin accepts options, but does not seem to handle `--` correctly as the end of options. The expected behavior would be for -- to be removed, and any following flag-like substrings printed as-is. Repeat-By: echo "-n" # "" but expecting "-n" echo -- -n foo # -- -n foo echo -- "-n foo" # -- -n foo