New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

In Terminal, can't type l/


Post Reply New Thread Subscribe

 
Thread Tools
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

Sandwichman is offline
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...
QUOTE Thanks
raydot

 
Member Since: Mar 27, 2008
Posts: 18
raydot is on a distinguished road

raydot is offline
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.
QUOTE Thanks
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,560
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: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM

mac57 is offline
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: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
I was on the Mac-Forums honor roll for September 2007
QUOTE Thanks
raydot

 
Member Since: Mar 27, 2008
Posts: 18
raydot is on a distinguished road

raydot is offline
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!
QUOTE Thanks
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

Sandwichman is offline
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...
QUOTE Thanks
emailboy

 
Member Since: Jun 22, 2009
Posts: 3
emailboy is on a distinguished road

emailboy is offline
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.
QUOTE Thanks

Post Reply New Thread Subscribe


« iPhone sdk stuck at 2GB. | Cocoa sample code »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
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 edokid Switcher Hangout 3 11-02-2005 03:48 PM
Terminal Help rs2sensen OS X - Apps and Games 1 04-25-2005 11:52 PM
osx install blue screen hell David123 OS X - Operating System 10 08-22-2004 05:40 PM
Terminal nbizm 3 for the price of 1 Bo Eddy OS X - Development and Darwin 5 05-04-2004 01:40 PM

All times are GMT -4. The time now is 02:07 PM.

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

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?