changing variables using user-input
hey, I ran into a problem when I was trying to make a script that edited the PS1 variable. and it doesn't work. here's the line(s):
echo "Type in the name for your prompt"
read $prompt
PS1="[Sprompt \W]"
echo "prompt changed"
where did this script fail or go wrong?
Last edited by Kai'; 04-28-2008 at 09:05 PM.
Reason: incomplete
|