diff mbox

[2/3] skeleton/root/.bash_profile: don't set PATH

Message ID 1413761457-25565-2-git-send-email-gustavo@zacarias.com.ar
State Accepted
Commit 34853976f906a5d7fc4e1b23d64c43518863875a
Headers show

Commit Message

Gustavo Zacarias Oct. 19, 2014, 11:30 p.m. UTC
Even if the main shell is bash /etc/profile is also parsed so it's
redundant.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 system/skeleton/root/.bash_profile | 8 --------
 1 file changed, 8 deletions(-)

Comments

Yann E. MORIN Oct. 21, 2014, 5:20 p.m. UTC | #1
Gustavo, All,

On 2014-10-19 20:30 -0300, Gustavo Zacarias spake thusly:
> Even if the main shell is bash /etc/profile is also parsed so it's
> redundant.
> 
> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>

Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Besides, it's really ugly the way it is currently done... :-(

Regards,
Yann E. MORIN.

> ---
>  system/skeleton/root/.bash_profile | 8 --------
>  1 file changed, 8 deletions(-)
> 
> diff --git a/system/skeleton/root/.bash_profile b/system/skeleton/root/.bash_profile
> index 27bf149..0ee04a3 100644
> --- a/system/skeleton/root/.bash_profile
> +++ b/system/skeleton/root/.bash_profile
> @@ -1,13 +1,5 @@
>  # .bash_profile
>  
> -export PATH=\
> -/bin:\
> -/sbin:\
> -/usr/bin:\
> -/usr/sbin:\
> -/usr/bin/X11:\
> -/usr/local/bin
> -
>  umask 022
>  
>  if [ -f ~/.bashrc ]; then
> -- 
> 2.0.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
diff mbox

Patch

diff --git a/system/skeleton/root/.bash_profile b/system/skeleton/root/.bash_profile
index 27bf149..0ee04a3 100644
--- a/system/skeleton/root/.bash_profile
+++ b/system/skeleton/root/.bash_profile
@@ -1,13 +1,5 @@ 
 # .bash_profile
 
-export PATH=\
-/bin:\
-/sbin:\
-/usr/bin:\
-/usr/sbin:\
-/usr/bin/X11:\
-/usr/local/bin
-
 umask 022
 
 if [ -f ~/.bashrc ]; then