Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Martijn Dekker Newsgroups: gnu.bash.bug Subject: Re: [PATCH] fc: trim range instead of erroring out Date: Thu, 20 Aug 2020 14:08:34 +0100 Lines: 21 Approved: bug-bash@gnu.org Message-ID: References: <0a83590f-880b-ba7e-ccb7-6d0d424fb586@inlv.org> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: usenet.stanford.edu 1597928926 30947 209.51.188.17 (20 Aug 2020 13:08:46 GMT) X-Complaints-To: action@cs.stanford.edu Cc: Chet Ramey To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 In-Reply-To: Content-Language: en-GB Received-SPF: none client-ip=2a02:2770::21a:4aff:fec6:e3d8; envelope-from=martijn@inlv.org; helo=freekahlil.inlv.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, MAY_BE_FORGED=1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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: <0a83590f-880b-ba7e-ccb7-6d0d424fb586@inlv.org> X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:16785 Op 12-08-20 om 16:40 schreef Chet Ramey: > What's your opinion about what the `as appropriate' means? An out-of-range > `first' gets substituted with the first command in the history, and an out- > of-range `last' gets the last history entry? Yes, that was my intention. > Bash does one thing, your > patch does another, but neither one does that. Then I suppose my patch was wrong. It seemed to work for me. - Martijn -- || modernish -- harness the shell || https://github.com/modernish/modernish || || KornShell lives! || https://github.com/ksh93/ksh