Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 02-22-2020, 07:14 PM
oko oko is offline
Registered User
 
Join Date: Feb 2020
Posts: 6
Red face Use up arrow key to repeat last command doesn't work properly in "Local shell"...

Use up arrow key to repeat last command doesn't work properly in "Local shell"
It brings last line only, not whole command:
Code:
for %f in (*.*) do ^
echo %f
Microsoft claims it's "feature", not a bug.

Is there a way to make it work consistently across various SecureCRT sessions?
Reply With Quote
  #2  
Old 02-23-2020, 11:43 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,228
Hi oko,

I am not sure what you are reporting.

Where/How are you using the code you posted?

Quote:
It brings last line only, not whole command:
What is the distinction between last line only vs whole command?

Can you post an explicit example of what is not working?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 02-23-2020, 10:46 PM
oko oko is offline
Registered User
 
Join Date: Feb 2020
Posts: 6
Brenda,
The following 2 lines are single command
Code:
echo "foo" ^
"bar"
Type or copy/paste them into local shell.
It'll print
HTML Code:
"foo" "bar"
Then press up arrow key.
Youíll see the last line only:
Code:
"bar"
instead of whole command:
Code:
echo "foo" "bar"
Do exactly the same in Linux shell:
Code:
echo "foo" \
"bar"
Then press up arrow key.
Youíll see whole command:
Code:
echo "foo" "bar"
Reply With Quote
  #4  
Old 02-24-2020, 08:26 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,228
Hi oko,

We are just using the shell the OS provides (in the case of CMD) so if Microsoft says it's a feature request, then I guess it is.

Have you tried PowerShell? The continuation character is ` (back tick) and it seems to perform the way you desire.

Or, if you would like to use Ubuntu WSL and bash, see this forum post.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by bgagnon; 02-24-2020 at 09:56 AM.
Reply With Quote
  #5  
Old 02-24-2020, 10:04 AM
oko oko is offline
Registered User
 
Join Date: Feb 2020
Posts: 6
Brenda,
Quote:
Originally Posted by bgagnon View Post
We are just using the shell the OS provides (in the case of CMD) so if Microsoft says it's a feature request, then I guess it is.
There is no feature request to change it.
According to Microsoft it is behavior by design (read: most convenient/useful for everyone) and itís not for discussion.
I donít agree, but can do nothing about it.
Was excited to see SecureCRT local shell, but I guess, you cannot do much about it either...

Quote:
Originally Posted by bgagnon View Post
Have you tried PowerShell? The continuation character is ` (back tick) and it seems to perform the way you desire.
Yep, used it for a while.
Itís ok if there is nothing else, but plain bash is a million times better, IMO.
If win server supports bash - thatís what I use always.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:22 PM.