bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: history position out of range


From: DennisW
Subject: Re: history position out of range
Date: Fri, 15 Jan 2010 09:21:48 -0800 (PST)
User-agent: G2/1.0

On Jan 14, 2:11 pm, Sergio Monteiro Basto <ser...@sergiomb.no-ip.org>
wrote:
> Hi,
> How I delete history from entry 2 to entry 22
>
> $ history -d 2:22
> bash: history: 2:22: history position out of range
>
> man history say:
>
> history -d offset
>
> where is define, the sintax of the offset?
>
> Thanks in advance,
> --
> Sérgio M. B.
>
>  smime.p7s
> 4KViewDownload

See noun definition 6:

http://en.wiktionary.org/wiki/offset

an offset is a distance, not a range.

Also, see my previous answer for a snippet that will perform your
delete by range for you. You could wrap it in a function.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]