A script to show PATH

Here you can exchange scripts that you created or have permission to share with other users.
Message
Author
User avatar
siamhie
Global Moderator
Posts: 3338
Joined: Fri Aug 20, 2021 5:45 pm

Re: A script to show PATH

#11 Post by siamhie »

Melber wrote: Thu Jun 12, 2025 8:28 am
siamhie wrote: Wed Jun 11, 2025 7:51 pm How does it test the $PATH?
@siamhie was the question directed at me or the OP?

In both cases, neither "tests" PATH, we both just echo it, one into a pointless log file and the other into a pointless yad window. ;)
Sorry @Melber, I should have quoted the OP when I made that comment.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Jakob77
Posts: 651
Joined: Thu Feb 09, 2023 3:09 am

Re: A script to show PATH

#12 Post by Jakob77 »

siamhie wrote: Wed Jun 11, 2025 7:51 pm How does it test the $PATH?
There is an upgraded version in the first post now.
If you make that to a personal script, and if you name the script showpath.sh you can now use the Terminal command:

Code: Select all

showpath.sh --help
Does that help answering your good question.? :-)

User avatar
siamhie
Global Moderator
Posts: 3338
Joined: Fri Aug 20, 2021 5:45 pm

Re: A script to show PATH

#13 Post by siamhie »

Jakob77 wrote: Thu Jun 12, 2025 3:36 pm
siamhie wrote: Wed Jun 11, 2025 7:51 pm How does it test the $PATH?
There is an upgraded version in the first post now.
If you make that to a personal script, and if you name the script showpath.sh you can now use the Terminal command:

Code: Select all

showpath.sh --help
Does that help answering your good question.? :-)

Not really because your initial post said this
for showing and testing PATH

I was wondering how the script tests the path. If it is just echoing for $PATH, then running that from a terminal is no different.

Code: Select all

╔═[siamhie@flux23]═[13:44 12/06/25]══════════════════════════════════════[~/.fluxbox]
╚═> echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
MX Fluxbox does come with a script folder that I can use for -my- personal scripts if I wanted to.

Code: Select all

╔═[siamhie@flux23]═[13:51 12/06/25]══════════════════════════════════════[~/.fluxbox]
╚═> ls -l --group-directories-first 
total 100
drwxr-xr-x  2 siamhie siamhie 12288 Apr 19 21:49 backgrounds
drwxr-xr-x 41 siamhie siamhie  4096 Jan 24 18:26 mystyles
drwxr-xr-x  2 siamhie siamhie  4096 Jan  1 12:40 scripts
drwxr-xr-x  7 siamhie siamhie  4096 Apr 29 08:32 styles
drwxr-xr-x  2 siamhie siamhie  4096 Jun 12 07:31 submenus
-rwxr-xr-x  1 siamhie siamhie  6073 Jun 12 13:42 apps
-rw-r--r--  1 siamhie siamhie    75 Mar 12 06:33 fbrun_history
-rw-r--r--  1 siamhie siamhie   291 Jan  1 07:54 fluxbox-mx-defaults
-rw-r--r--  1 siamhie siamhie  3689 Jun  2 08:15 init
-rw-r--r--  1 siamhie siamhie  4141 May 31 14:29 keys
-rw-r--r--  1 siamhie siamhie  5797 May 31 12:33 keys-BAK
-rw-r--r--  1 siamhie siamhie  3870 Jan 26 13:26 keys-orig
-rw-r--r--  1 siamhie siamhie   191 Sep 13  2024 lastwallpaper
-rw-r--r--  1 siamhie siamhie    66 Jan  1 07:54 menu
-rw-r--r--  1 siamhie siamhie  1089 May 10 17:00 menu-mx
-rw-r--r--  1 siamhie siamhie  1896 May 30 03:50 overlay
-rw-r--r--  1 siamhie siamhie    64 Jun 12 06:40 pre-global-menu.txt
-rw-r--r--  1 siamhie siamhie    12 Jun 12 13:19 slitlist
-rw-r--r--  1 siamhie siamhie  1962 May 28 07:26 startup
-rw-r--r--  1 siamhie siamhie   168 Jan  1 07:54 windowmenu
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Jakob77
Posts: 651
Joined: Thu Feb 09, 2023 3:09 am

Re: A script to show PATH

#14 Post by Jakob77 »

siamhie

There are many ways to test.
And the taste for remembering and typing a lot of Terminal commands can be very different.
However if you want to see how PATH looks when you run a personal user script I am afraid you will have to run a script.
I can not guide you about Fluxbox.

User avatar
figueroa
Posts: 1100
Joined: Thu Dec 20, 2018 11:20 pm

Re: A script to show PATH

#15 Post by figueroa »

Why not just:

Code: Select all

env | grep PATH
No script required.
Andy Figueroa
Using Unix from 1984; GNU/Linux from 1993

User avatar
wdscharff
Posts: 1106
Joined: Mon Feb 24, 2020 1:07 am

Re: A script to show PATH

#16 Post by wdscharff »

Why not just:
Too easy
Why simple when you can do it complicated?
my working horse Desktop AMD Ryzen 9 3900x, 32GB Ram // SSD ... enough
mx-fluxbox, what else?

In nature there are neither rewards nor punishments.
There are consequences.


my wallpaper gallery

Post Reply

Return to “Scripts”