octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #48754] Ignore >> when copy pasting into Comma


From: Ceral Paquet
Subject: [Octave-bug-tracker] [bug #48754] Ignore >> when copy pasting into Command Window
Date: Wed, 10 Aug 2016 22:28:04 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.1) Gecko/20100101 Goanna/20160701 PaleMoon/26.3.3

URL:
  <http://savannah.gnu.org/bugs/?48754>

                 Summary: Ignore >> when copy pasting into Command Window
                 Project: GNU Octave
            Submitted by: octavebugs
            Submitted on: Wed 10 Aug 2016 10:28:02 PM GMT
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Not really a bug, just a little thing.

When cut/pasting code that includes the >> prompt, the Matlab command windows
automatically removes the >> and exectutes the code. Octave doesn't.

E.g. if you paste this string into Matlab command window

>> x = rand (1e8, 1);

then it removes the leading ">> ". It seems to detect this and only this
leading string and removes it completely, i.e. what is pasted is "x = rand
(1e8, 1);" without any trace of the ">> ". Manually typing in the string with
leading >> gives a syntax error.


In Octave, cut and paste result in this:

>> >> x = rand (1e8, 1);
parse error:

  syntax error

>>> >> x = rand (1e8, 1);

Would it be possible to filter off ">> " during paste?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48754>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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