Bug #47911 CRT shell has problems using commands from history
Submitted: 8 Oct 2009 8:19 Modified: 17 Sep 2013 12:10
Reporter: Geert Vanderkelen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.4 OS:MacOS (10.6.1)
Assigned to: CPU Architecture:Any

[8 Oct 2009 8:19] Geert Vanderkelen
Description:
There is an issue with scrolling through the history in the GRT shell (using Python). If you execute a `for` again, the next line is expected to be indented, but the shell doesn't show that anymore.
It will work again not using history lines.

How to repeat:
>>> model = grt.root.wb.doc.physicalModels[0]
>>> for tab in model.catalog.schemata[0].tables:
...   print "Table: `%s`" % (tab.name)
... 
Table: `t1`

(scroll through history, cursor up and press enter on)
>>> for tab in model.catalog.schemata[0].tables:

(the shell should show '...', expecting indent, but doesn't)
(get the 'print' from the history, and press enter:)
>>>   print "Table: `%s`" % (tab.name)

(doesn't execute. Now press couple more enters.)
>>> 
... 
>>> 
... 
>>> 

(if you know paste again the lines, so not using history it works fine)
>>> for tab in model.catalog.schemata[0].tables:
...    print "Table: `%s`" % (tab.name)
... 
Table: `t1`
[17 Sep 2013 12:10] Marcin Szalowicz
can't repeat in 6.0.7