Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

What does pressing Alt + Shift + 3 do? All I can see is that it prints a pound sign and jumps to the next line, but supposedly it's supposed to do something special

share|improve this question
1  
What shell is this supposed to be answered for? –  Kusalananda Oct 13 '11 at 9:14
add comment

2 Answers

In readline, Alt can be interpreted as \e. On my system (and likely yours as well) \e# is bound to insert-comment, which according to the bash(1) man page comments or uncomments the current command line and executes it. If you press it without typing anything then # is executed, which has no effect since it's a comment.

share|improve this answer
    
Unless you are, like me, using ksh with Vi key bindings, in which case no # is inserted when nothing yet has been typed. –  Kusalananda Oct 13 '11 at 9:13
add comment

It depends on the layout. In my case it creates ¥ character.

share|improve this answer
    
Did you perhaps think the asker meant AltGr-#? –  Ignacio Vazquez-Abrams Oct 13 '11 at 6:58
    
No, as I said, it depends on the layout. I don't have AltGr on my keyboard at all. –  greenoldman Oct 13 '11 at 9:00
    
@macias Are you sure about this? AltGr is usually just an alias for "right Alt key". Does the same appear when you use the left Alt (assuming you have one)? –  rozcietrzewiacz Oct 13 '11 at 11:27
add comment

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.