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.

In the mac os x terminal, if you type in:

i'm

you get a line with a less than sign, looks like a primitive instant messenger, It's probably not, does anyone know what it is?

share|improve this question

3 Answers 3

up vote 16 down vote accepted

What is happening is that the ' is being interpreted as the start of a single-quoted part of the command, which means that the end of line character is treated as a literal (i.e. go on to a new line; not "I'm done; execute this"). The > indicates that you are still typing the command, albeit on a different line. You will need to add another single quote to end the command.

For example, with the echo command, which merely repeats any parameters it is given to standard output:

:~ scott$ echo hello
hello
:~ scott$ echo 'hello'
hello
:~ scott$ echo 'hello
> on
> multiple
> lines'
hello
on
multiple
lines
:~ scott$ 
share|improve this answer

It's a continuation of the command you're entering, which can't be executed as-is because it's clearly incomplete as it has an unmatched single quote.

share|improve this answer

This means that you've started to quote something (with the opening apostrophe), so the shell doesn't execute it until you close the quote. So when you enter another apostrophe and hit return you'll pass the whole thing to the shell with the new line characters contained in the quoted string.

share|improve this answer

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.