Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools Console Foundations Environment and Redirection Environment Variables

huckleberry
huckleberry
14,636 Points

How to unpause the command line itself? ... lulz worthy typo.

Ok... so,

I'm sitting here messing around in the console and changing the PS1 variable around because, well, that's what we do to learn, right?

Well, I decided to set the value to "\w &" as one of my attempts only... that didn't work out.

Remember what the & key does when placed after a command? How it automatically runs and then pauses the process?

Well, I typed "\w & and then when I went to close the quotes, I hit Enter. Then this happened.

Soooooo essentially I paused the console itself? And I can't do anything to get it back to normal because if I have to run a command from the command line, I can't very well do that if the command line is paused lol.

I've restarted the console and of course things are back to normal but it's got me wondering... what if that were to happen IRL? Is there any way out of that mess? Or is it just that you're out of luck and you better work on your typing accuracy some more?

Thanks,

Huck - :sunglasses:

Did you try pressing Ctrl + C to break out of the command?

I just recreated your error, and Ctrl+ C broke me out of the command lol

huckleberry
huckleberry
14,636 Points

Heeey, check that out! Nice.

I ... I didn't think that would work. And in fact I can't seem to think even now why it would.

Ctrl + C sends the term signal to a process sooooo how is ctrl + c doing anything? What is it actually terminating here?

Thanks!

Huck - :sunglasses:

p.s. can you post as an answer so I's can give yous da upvotz??

1 Answer

I surely can, Hucks! :D The way I recreated it though was echoing the ps1 variable into that new code. I have no idea how it works. I just know that Ctrl + C breaks you out of stuff and things lol I wish I could be of more help!