VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   General (https://forums.vandyke.com/forumdisplay.php?f=11)
-   -   Use up arrow key to repeat last command doesn't work properly in "Local shell"... (https://forums.vandyke.com/showthread.php?t=14086)

oko 02-22-2020 07:14 PM

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? :confused:

bgagnon 02-23-2020 11:43 AM

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?

oko 02-23-2020 10:46 PM

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"

bgagnon 02-24-2020 08:26 AM

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.

oko 02-24-2020 10:04 AM

Brenda,
Quote:

Originally Posted by bgagnon (Post 53104)
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 (Post 53104)
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.


All times are GMT -6. The time now is 04:02 AM.