Bug:garbage character appears at the end of prompt after execution of command

28 views
Skip to first unread message

Venkatesh Pai

unread,
Jan 21, 2020, 2:07:04 AM1/21/20
to klish
Hi ,
     After execution of command ,I see sometimes garbage character getting appended to the  prompt.I guess its bug in the Klish application ,If its there, Klish application cannot be used with automation scripts.This extra character which has got introduced lead to syntax error of command.

Weather anybody has encountered same issue?Do we need to append some safeguard bytes to command to prevent this?Can anybody help me?


Thanks in advance.

serj.kalichev

unread,
Jan 21, 2020, 3:15:21 AM1/21/20
to kl...@googlegroups.com

Hi

There is not enough information to reproduce the problem

21.01.2020 09:55, Venkatesh Pai пишет:
Hi ,
     After execution of command ,I see sometimes garbage character getting appended to the  prompt.I guess its bug in the Klish application ,If its their this application cannot be used with automation script.This extra character which has got introduced lead to syntax error.

Weather anybody has encountered same issue?Do we need to append some safeguard bytes to command to prevent this?Can anybody help me?
--
You received this message because you are subscribed to the Google Groups "klish" group.
To unsubscribe from this group and stop receiving emails from it, send an email to klish+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/klish/4e6ece64-cbda-4719-affc-9dd0736cdcf6%40googlegroups.com.

Venkatesh Pai

unread,
Jan 22, 2020, 1:42:04 AM1/22/20
to klish
Thank you Serj Kalichev for your quick reply.

I don't think it has something to do with my command ,this issue has been observed whenever command grows little bit lengthy.
This garbage character appears not only for command prompt , it sometimes appear even with incomplete command when you press TAB to get possible completions.

The bug could be in function void tinyrl_redisplay tinyrl_t * this) in the file tinyrl\tinyrl.c
It might be failing to recalculate exact length of prompt and command and includes extra character from their respective buffers.

Example command where issue has been observed (replaced characters in actual command with different characters, but taken care to maintain same length,so should not create any problem for you in case you wish to reproduce the issue)


KTR1(config)# BBB Vxrmenticamntr wetrs nhtrname DBBF DiamlAddress asdshgfUsaghd.com LoWEDdOut true MutrleNumber 564645 YTEneNumber 437583 LaxQRssionLimit 8 WTRctivityTnhgout 45 QWNplayName ADGG



On Tuesday, January 21, 2020 at 1:45:21 PM UTC+5:30, Serj Kalichev wrote:

Hi

There is not enough information to reproduce the problem

21.01.2020 09:55, Venkatesh Pai пишет:
Hi ,
     After execution of command ,I see sometimes garbage character getting appended to the  prompt.I guess its bug in the Klish application ,If its their this application cannot be used with automation script.This extra character which has got introduced lead to syntax error.

Weather anybody has encountered same issue?Do we need to append some safeguard bytes to command to prevent this?Can anybody help me?
--
You received this message because you are subscribed to the Google Groups "klish" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages