From 716f3f99cea332a63983273572f2324e66732d55 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Sun, 11 Apr 2021 21:39:31 -0500 Subject: [PATCH] test: su -p doesn't set home with out also doing '-' Signed-off-by: Serge Hallyn --- tests/su/02/env_special-options_-p.exp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/su/02/env_special-options_-p.exp b/tests/su/02/env_special-options_-p.exp index 3a7143c67..85656da3d 100755 --- a/tests/su/02/env_special-options_-p.exp +++ b/tests/su/02/env_special-options_-p.exp @@ -44,8 +44,8 @@ send "echo \"PATH=\\\"\$PATH\\\"\"\r" expect "PATH=\"/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games\"\r" expect "$ " -send "echo \"'\$HOME'\$USER'\$LOGNAME'\$SHELL'\"\r" -expect "'/root'root'root'/bin/bash'\r" +send "echo \"'\$USER'\$LOGNAME'\$SHELL'\"\r" +expect "'root'root'/bin/bash'\r" expect "$ " send "exit\r" -- 2.47.3