help-octave
[Top][All Lists]
Advanced

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

Re: using command number in octave:1>


From: Jaroslav Hajek
Subject: Re: using command number in octave:1>
Date: Wed, 7 Jul 2010 12:20:26 +0200

On Wed, Jul 7, 2010 at 12:04 PM, David Grundberg <address@hidden> wrote:
> David Grundberg skrev:
>> Hi,
>>
>> when you start Octave, it shows you a prompt, like this:
>>
>> octave:1>
>>
>> That follows from PS1, set to '\s:\#> '.  I read the docs and \# is
>> apparently called the "command number".  (Not the same concept as
>> "history number".)
>>
>> I searched for command number in the bash manual and in the readline
>> user manual, but I can't find what use it has.  Can I feed it back into
>> readline?  Can I use it to reference previous commands?
>>
>> David
>
> Seriously, nobody knows what that number is there for and how you use it?
>

It's just a counter that is auto-incremented with each non-erroneous
expression. I don't think there's any other usage.

-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

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