bugGNU Octave - Bugs: bug #38520, octave prints PS1 prompt when...

 
 

bug #38520: octave prints PS1 prompt when reading commands from stdin

Submitter:  Richard <crobar>
Submitted:  Fri 15 Mar 2013 09:42:16 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  RIchard Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Mar 2013 09:07:03 PM UTC, comment #2: 
John W. Eaton <jwe>
Group administrator
Sat 16 Mar 2013 06:27:27 PM UTC, comment #1: 

Same error for me.

Actually I think the bug/regression is that Octave now prints the PS1 prompt when reading commands from stdin when it is not a terminal. This is probably due to recent works in progress as discussed on the maintainers list.

Previous behavior:


$ echo OCTAVE_VERSION | octave -qf
ans = 3.7.0+


New behavior:


$ echo OCTAVE_VERSION | octave -qf
octave:1> ans = 3.7.2+
octave:2>


Mike Miller <mtmiller>
Group Member
Fri 15 Mar 2013 09:42:16 AM UTC, original submission:  

I have cloned, built and installed the most recent classdef tip (I think), i.e.


richard@hector ~/src/octave $ hg --debug id -i
bde729ba838137c6db9503f3f0f19385bb8bc2f7
richard@hector ~/src/octave $ hg id -i
bde729ba8381


When I run the command

pkg install -forge odepkg


I get


octave:1> pkg load odepkg
error: package odepkg is not installed
error: called from:
error:   /usr/local/share/octave/3.7.2+/m/pkg/private/load_packages.m at line 53, column 11
error:   /usr/local/share/octave/3.7.2+/m/pkg/pkg.m at line 410, column 7
octave:1> pkg install -forge odepkg
make: *** No rule to make target `2>', needed by `octave-3.7.2+'. Stop.
'make' returned the following error: make: Entering directory `/tmp/oct-GUuG9e/odepkg/src'
make: Leaving directory `/tmp/oct-GUuG9e/odepkg/src'
error: called from 'configure_make' in file /usr/local/share/octave/3.7.2+/m/pkg/private/configure_make.m near line 71, column 9
error: called from:
error:   /usr/local/share/octave/3.7.2+/m/pkg/private/install.m at line 201, column 5
error:   /usr/local/share/octave/3.7.2+/m/pkg/pkg.m at line 392, column 9


Richard <crobar>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by crobar (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-20 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2013-03-16 mtmiller CategoryOctave Package Interpreter
        Item GroupOther Regression
        StatusNone Confirmed
        Summarypkg install -forge odepkg fails with make error octave prints PS1 prompt when reading commands from stdin

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code