Go Back  Mac-Forums.com  > Software > OS X - Darwin and Development > In Terminal, can't type l/

Reply
 
LinkBack Thread Tools
Old 03-14-2008, 08:02 PM   #1 (permalink)
Sandwichman

 
Sandwichman's Avatar
 
Member Since: Jul 19, 2006
Posts: 238
Sandwichman will become famous soon enough
Mac Specs: iMac 17" Intel Core Duo, 2 GB RAM + 20" ACD
In Terminal, can't type l/

So I use Terminal on occasionally, enough that this is a bit of a problem: whenever I'm in Terminal (even if I'm in one of the text editors like nano), and I type l/ (for example, when typing a path such as /usr/local/bin), the l/ becomes a space.

For example:

"cd /usr/local/bin"

becomes:

"cd /usr/loca bin " (with that trailing space that I can't get rid of).

It happens in real-time, not just when you send the command, and goes away if you remove the / after the l in question.

This makes it a little difficult to move anywhere in Terminal that has those two characters together. I don't have any idea what caused it; I don't think I changed anything (knowingly) to make it happen. I've rebooted several times since it first showed up, have restarted Terminal, logged out and back in, and all the basic tricks.

I'd greatly appreciate it if someone knows what's happening here- thanks in advance.
__________________
Sitting, waiting, wishing...
Sandwichman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 03-27-2008, 01:33 PM   #2 (permalink)
raydot

 
Member Since: Mar 27, 2008
Posts: 18
raydot is on a distinguished road
This may seem like a silly question, but are you sure you're doing l/ and not \l. That would turn into a space.

Also, you can always hit the TAB key to finish a path. So if you type:

cd /usr/loc

And then TAB

It should finish that bit and let you keep typing.
raydot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 03-27-2008, 11:18 PM   #3 (permalink)
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,529
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: Mac Pro, 3.2 GHz 8 Core, 8 GB RAM, 2*750 GB Disk, nVidia 8800 GT
Of course you can always use the good 'ol bash unix/Linux escape mechanism to "escape" the key in question. You do this by preceding the key of interest with a "\".

In your example above, you could type:

Code:
cd /usr/local\/bin
I just tried this in my Terminal.app and it works like a charm (of course I can type "cd /usr/local/bin" with no problem as well).
__________________
My Macs: Mac Pro, 3.2 GHz 8 Core, MacBook Pro, 2.2 GHz C2D
My iStuff: 32 GB iPhone 3G S, 30 GB iPod Video, 16 GB iPod Touch
My OS': Mac OS X Leopard, Mac OS X Tiger, openSUSE 10.3, Win XP
I was on the Mac-Forums honor roll for September 2007
mac57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 03-28-2008, 01:08 PM   #4 (permalink)
raydot

 
Member Since: Mar 27, 2008
Posts: 18
raydot is on a distinguished road
Quote:
Originally Posted by mac57 View Post
I just tried this in my Terminal.app and it works like a charm (of course I can type "cd /usr/local/bin" with no problem as well).
I can too, so this is a strange problem!
raydot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 04-01-2008, 08:09 PM   #5 (permalink)
Sandwichman

 
Sandwichman's Avatar
 
Member Since: Jul 19, 2006
Posts: 238
Sandwichman will become famous soon enough
Mac Specs: iMac 17" Intel Core Duo, 2 GB RAM + 20" ACD
Hi everyone, thanks for the replies.

Quote:
raydot:This may seem like a silly question, but are you sure you're doing l/ and not \l. That would turn into a space.
Not a silly question at all- one of the first things I checked myself. Regarding TAB-completion, it doesn't really work that way for me. It completes just fine, but the l/ becomes a space again. The problem here is that it's not just being interpreted as a space, it *becomes* a space when I type it.

The way I worked around it was splitting each directory move into separate commands:

cd /usr
cd local
cd (etc...)

This works because I never have to type "l/" consecutively. By moving one directory at a time it works fine.

Quote:
mac57:Of course you can always use the good 'ol bash unix/Linux escape mechanism to "escape" the key in question. You do this by preceding the key of interest with a "\".
Hm. I guess that works for me too. Not sure why I didn't try that, guess I assumed it would try to do "cd /usr/local bin/" that way. Thanks for the suggestion!

I still have no idea what's causing it, but it looks like it's relatively easy to work around. Thanks everyone!
__________________
Sitting, waiting, wishing...
Sandwichman is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Old 10-18-2009, 11:23 PM   #6 (permalink)
emailboy

 
Member Since: Jun 22, 2009
Posts: 2
emailboy is on a distinguished road
I'm having pretty much the same problem, except the "/l" gets turned into a non-US-ASCII character (kind of looks like an "L" with a slash through it) instead of a space. It only happens on one of my machines, and on that box it happens for all users, not just me. Typing a lower-case "L" followed by a slash into the Terminal immediately converts the two characters to this weird one. Tab-completion does the same thing, as does the results of "which". Escaping the slash works.
emailboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Stumble this post
Reply With Quote
Reply


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Terminal problems please help CliveO OS X - Operating System 6 03-20-2007 11:04 AM
Terminal service type thing to display mac on PC leemoreau Switcher Hangout 3 11-02-2005 03:48 PM
Terminal Help rs2sensen OS X - Applications and Games 1 04-25-2005 11:52 PM
osx install blue screen **** David123 OS X - Operating System 10 08-22-2004 05:40 PM
Terminal nøøbizm 3 for the price of 1 Bo Eddy OS X - Darwin and Development 5 05-04-2004 01:40 PM

 
 
 
     
Home Calendar Get New
     

Copyright ©2001-2009 Mac-Forums.com. All Rights Reserved. A division of iNET Interactive.

Other iNET Interactive Sites: Web Hosting Talk | Swish Talk | Hosting Catalog.com| Dev Papers| Deleted Domains| Hot Scripts

Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.