Skip to contentSkip to conversation

skeleton/etc/profile: remove /usr/bin/X11 from PATH

PATCH New Gustavo Zacarias 4 participants 8 messages Oct 19, 2014 – Oct 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 skeleton/etc/profile: remove /usr/bin/X11 from PATH

That directory has been unused for ages so remove it.

---
 system/skeleton/etc/profile | 1 -
 1 file changed, 1 deletion(-)
system/skeleton/etc/profile +0 -1
index 31d3180..640f6f1 100644
@@ -5,7 +5,6 @@ export PATH=\
 /sbin:\
 /usr/bin:\
 /usr/sbin:\
-/usr/bin/X11:\
 /usr/local/bin
 
 # If running interactively, then:
Signature · 1 line
2.0.4
#1 lore raw

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

Even if the main shell is bash /etc/profile is also parsed so it's redundant.

---
 system/skeleton/root/.bash_profile | 8 --------
 1 file changed, 8 deletions(-)
system/skeleton/root/.bash_profile +0 -8
index 27bf149..0ee04a3 100644
@@ -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
Signature · 1 line
2.0.4
#2 lore raw

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

Gustavo, All,

On 2014-10-19 20:30 -0300, Gustavo Zacarias spake thusly:

Quoted 4 lines

Even if the main shell is bash /etc/profile is also parsed so it's redundant.

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

Regards,
Yann E. MORIN.

Quoted 29 lines
---
 system/skeleton/root/.bash_profile | 8 --------
 1 file changed, 8 deletions(-)
system/skeleton/root/.bash_profile +0 -8
index 27bf149..0ee04a3 100644
@@ -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
Signature · 6 lines
2.0.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 3/3 skeleton/etc/profile: drop aliases

In reply to Gustavo Zacarias

They all depend on having a custom busybox config and/or fully featured utilities which depend on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS.

---
 system/skeleton/etc/profile | 11 -----------
 1 file changed, 11 deletions(-)
system/skeleton/etc/profile +0 -11
index 640f6f1..3812dda 100644
@@ -33,17 +33,6 @@ if [ "$PS1" ]; then
     export INPUTRC=/etc/inputrc
     export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
 
-    ### Some aliases
-    alias ps2='ps facux '
-    alias ps1='ps faxo "%U %t %p %a" '
-    alias af='ps af'
-    alias cls='clear'
-    alias df='df -h'
-    alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 '
-    #alias bc='bc -l'
-    alias minicom='minicom -c on'
-    alias calc='calc -Cd '
-    alias bc='calc -Cd '
 fi;
 
 # Source configuration files from /etc/profile.d
Signature · 1 line
2.0.4
#4 lore raw

PATCH 3/3 skeleton/etc/profile: drop aliases

Gustavo, All,

On 2014-10-19 20:30 -0300, Gustavo Zacarias spake thusly:

Quoted 4 lines

They all depend on having a custom busybox config and/or fully featured utilities which depend on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS.

Regards,
Yann E. MORIN.

Quoted 33 lines
---
 system/skeleton/etc/profile | 11 -----------
 1 file changed, 11 deletions(-)
system/skeleton/etc/profile +0 -11
index 640f6f1..3812dda 100644
@@ -33,17 +33,6 @@ if [ "$PS1" ]; then
     export INPUTRC=/etc/inputrc
     export DMALLOC_OPTIONS=debug=0x34f47d83,inter=100,log=logfile
 
-    ### Some aliases
-    alias ps2='ps facux '
-    alias ps1='ps faxo "%U %t %p %a" '
-    alias af='ps af'
-    alias cls='clear'
-    alias df='df -h'
-    alias indent='indent -bad -bap -bbo -nbc -br -brs -c33 -cd33 -ncdb -ce -ci4 -cli0 -cp33 -cs -d0 -di1 -nfc1 -nfca -hnl -i4 -ip0 -l75 -lp -npcs -npsl -nsc -nsob -nss -ts4 '
-    #alias bc='bc -l'
-    alias minicom='minicom -c on'
-    alias calc='calc -Cd '
-    alias bc='calc -Cd '
 fi;
 
 # Source configuration files from /etc/profile.d
Signature · 6 lines
2.0.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#5 lore raw

PATCH 1/3 skeleton/etc/profile: remove /usr/bin/X11 from PATH

In reply to Gustavo Zacarias
Quoted 3 lines · Gustavo Zacarias

That directory has been unused for ages so remove it.

Regards,
Arnout

Quoted 17 lines
---
 system/skeleton/etc/profile | 1 -
 1 file changed, 1 deletion(-)
system/skeleton/etc/profile +0 -1
index 31d3180..640f6f1 100644
@@ -5,7 +5,6 @@ export PATH=\
 /sbin:\
 /usr/bin:\
 /usr/sbin:\
-/usr/bin/X11:\
 /usr/local/bin
 
 # If running interactively, then:
Signature · 6 lines
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#6 lore raw

PATCH 1/3 skeleton/etc/profile: remove /usr/bin/X11 from PATH

In reply to Gustavo Zacarias

Gustavo, All,

On 2014-10-19 20:30 -0300, Gustavo Zacarias spake thusly:

Quoted 3 lines

That directory has been unused for ages so remove it.

Regards,
Yann E. MORIN.

Quoted 23 lines
---
 system/skeleton/etc/profile | 1 -
 1 file changed, 1 deletion(-)
system/skeleton/etc/profile +0 -1
index 31d3180..640f6f1 100644
@@ -5,7 +5,6 @@ export PATH=\
 /sbin:\
 /usr/bin:\
 /usr/sbin:\
-/usr/bin/X11:\
 /usr/local/bin
 
 # If running interactively, then:
Signature · 6 lines
2.0.4

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'