Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I accidently typed two commas instead of two periods and insanity pursued. How do I send EOT and stop whatever this double left-arrow bracket prompt (>).

PS C:\dbsync> cd ,,
>> q
>> exit
>> '
>> ,
>>
>>
>> ^D^D
>> ^X
>> ^Z
>> ^A
>>
>> ^Q
>> ^E^R
>> ,
>> ,
>> ,
>> ,,,,,
>> ]}}}
>> ;
>> '

Wikipedia says to use Ctrl + Z, but it didn't work as evidenced by the ^Z above. How do I stop this craziness?

This is PowerShell v2.0.-1.-1:

PS C:\> $Host.Version

Major  Minor  Build  Revision
-----  -----  -----  --------
2      0      -1     -1
share|improve this question
    
I tried this but didn't have the same result as you. Can you provide more information? –  Jay Bazuzi Feb 15 '13 at 19:39
    
@JayBazuzi are you in powershell or cmd? –  Evan Carroll Feb 15 '13 at 21:11
    
I was in PowerShell. See evernote.com/shard/s265/sh/482e7270-1210-4e0f-930e-ed8fa566e16d/… –  Jay Bazuzi Feb 15 '13 at 21:18
    
I used PowerShell v3.0. Which version do you have? ($Host.Version) –  Jay Bazuzi Feb 15 '13 at 21:22
    
@JayBazuzi PowerShell v2.0.-1.-1 –  Evan Carroll Feb 15 '13 at 21:31

1 Answer 1

Windows uses Ctrl + C to send EOT (or it just kills the process accepting input, not sure how it works).

share|improve this answer
    
It just kills the process. "EOF" is Ctrl+Z, although in your case PowerShell probably just ignores EOF and expects something different. –  grawity Feb 15 '13 at 18:23
    
But not the parent process which in this case is the powershell console. So it is the right answer. –  EBGreen Feb 15 '13 at 18:24
1  
It might be the right answer to "how do you get out of cd ,,", but it's not the right answer to "how do you send EOT". –  grawity Feb 15 '13 at 18:25

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.