You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
488 B
20 lines
488 B
6 years ago
|
diff --git a/variables.c b/variables.c
|
||
|
index b7ebaea..5e2986f 100644
|
||
|
--- a/variables.c
|
||
|
+++ b/variables.c
|
||
|
@@ -467,7 +467,11 @@ initialize_shell_variables (env, privmode)
|
||
|
#endif
|
||
|
set_if_not ("PS2", secondary_prompt);
|
||
|
}
|
||
|
- set_if_not ("PS4", "+ ");
|
||
|
+
|
||
|
+ if (current_user.euid == 0)
|
||
|
+ bind_variable ("PS4", "+ ", 0);
|
||
|
+ else
|
||
|
+ set_if_not ("PS4", "+ ");
|
||
|
|
||
|
/* Don't allow IFS to be imported from the environment. */
|
||
|
temp_var = bind_variable ("IFS", " \t\n", 0);
|
||
|
--
|
||
|
2.9.3
|