Everything2
Near Matches
Ignore Exact
Full Text
Everything2

PS2

created by JQuest

(thing) by mcc (2.7 y) (print)   ?   (I like it!) Mon Sep 25 2000 at 1:01:41

A bash environment variable, similar to PS1. It is your "secondary" prompt (whereas PS1 is your "primary"). The difference is that PS1 is what it gives you when it's asking for a command, and PS2 is what it gives you when it's in the process of accepting a multi-line command. For example, let's say you were giving it the command:
echo "This is line one of this echo
This is line two of this echo" > random_file
When you started typing line one, you would be typing into PS1, and when you started typing line 2 (or any subsequent lines, for that matter), you would be typing into PS2.

To see what your PS2 looks like, type echo $PS2

To change your PS2, type PS2="new_ps2_value"
People usually do this in their bashrc file.

PS2 usually contains nothing but "> ", but you can use any of the escaped commands given in the PS1 node.


printable version
chaos

PlayStation 2 PS/2 Usage of the Sony Playstation 2 as a back massage device Why does my console outperform my PC?
What is faster than the speed of light? PS1 XBox :CueCat
dd if=/dev/zero of=/dev/hda Playstation copy protection fuckwit The HURD
embedded DRAM Twisted Metal Black Sly Cooper and the Thievius Raccoonus MovieMask
Acts of Gord Star Wars: Battlegrounds iPaq Sony NW-MS70D
Haiku Modern video games suck Limp Bizkit N64
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Look at this mess the Death Borg made!
Clerihew
I left you a note and you replied to it
On the Origin of Species by Means of Natural Selection
Add Me On
Nystagmus
The Gone, Growing in Number
The Third Man
Van Morrison
Three times the Pale Rider came
Why I think I'm a disgusting human being
The ossuary of James
Methamphetamine
the water cooler is evil
New Writeups
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
Twin Eclipse
Conversations with God: An Uncommon Dialogue(idea)
SwimmingMonkey
Conversations with Fo Fo- the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
This affordable entertainment brought to you by The Everything Development Company