oracle - SQL*PLUS Linux Client not backspacing upon linewrap -


first database class new oracle , sql*plus. when typing commands @ prompt if reach edge of terminal window , wrap next line unable return previous line using backspace.

an example (_ indicates position of cursor block):

sql> !od -c <<< "test aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaathisisat est"_ 

if terminal wraps able backspace here:

sql> !od -c <<< "test aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaathisisat _ 

once reach point no matter method use backspace, prompt not return previous line.

strangely can resize terminal window bring cursor block previous line , continue backspacing not work.

passing input od standard wrapped line comes out fine:

0000000   t   e   s   t                           0000020                                 * 0000120           t   h     s     s     t   e   s   t  \n 

however if change terminal size , cursor block stuck no matter positioned , execute command receive error:

sp2-0042: unknown command """ -rest of line ignored. 

inspecting output next /n isn't inserted until after sql> prompt appears again:

0000000   s   q   l   >       !   o   d       -   c       <   <   <     0000010   "   j   k   s   d   h   f   k   j   d   s       h   s   d   h 0000020   f       k   s   d   h   f       s   d   f       s   d   f     0000030     d   s   f         d       f     d   s   f       d   s 0000040         d   s   d   s   f   d       s   d   f       d   f     0000050                   "                                           s 0000060   p   2   -   0   0   4   2   :       u   n   k   n   o   w   n 0000070       c   o   m   m     n   d       "   "   "       -       r 0000080   e   s   t       o   f       l     n   e         g   n   o 0000090   r   e   d   .                                                 00000a0                                                                 00000b0                                                           s   q 00000c0   l   >                              \n  

this behavior not present on windows able backspace previous line wrapped 1 when using sql*plus client in cmd.

on linux using sql*plus 11.2.0.1.0 , database is

oracle database 12c enterprise edition release 12.1.0.1.0 - 64bit production partitioning, olap, advanced analytics , real application testing options 


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -