Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > gnu.bash.bug > #16785

Re: [PATCH] fc: trim range instead of erroring out

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Martijn Dekker <martijn@inlv.org>
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 <mailman.452.1597928925.2469.bug-bash@gnu.org> (permalink)
References <bee8013d-39e9-7433-934f-89fce4134369@inlv.org> <b86c684a-64fc-e622-f5b0-16d382a1a27b@case.edu> <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 <chet.ramey@case.edu>
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 <b86c684a-64fc-e622-f5b0-16d382a1a27b@case.edu>
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 <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <0a83590f-880b-ba7e-ccb7-6d0d424fb586@inlv.org>
X-Mailman-Original-References <bee8013d-39e9-7433-934f-89fce4134369@inlv.org> <b86c684a-64fc-e622-f5b0-16d382a1a27b@case.edu>
Xref csiph.com gnu.bash.bug:16785

Show key headers only | View raw


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

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: [PATCH] fc: trim range instead of erroring out Martijn Dekker <martijn@inlv.org> - 2020-08-20 14:08 +0100

csiph-web