Skip to content
Sign UpLog In
Profile icon

Ashok Bakthavathsalam

@ashokb
Founder, Managing Trustee
  • Unit5_Programs

    Cover page
    Made with C

    Relevant C programs for Unit 5 of CS3251 or GE8151

    Recent comments (0)
Repls
Community
ashokb
ashokb
shared a Post
3 years ago
How to add current working directory to the PATH environment variable
I am compiling multiple executables. And I want to be able to execute it when I am in the current working directory. How to add the CWD to the environ
Unit5_Programs
C
isbur
isbur
Hi! I found a somewhat sneaky solution to this issue. It uses a comparatively recent Secrets feature. Yes, just put desired PATH contents to secret named "PATH", for example, you can echo default PATH contents and than copy it cocatenating with your own paths. However, some system-wide settings affecting PATH value may be changed later, and as this solution is basically forcible rewriting of PATH variable you may need to manually update the "secret" according to changes that took place.2 years ago
ashokb
ashokb
shared a Post
3 years ago
I would like to add the current working directory to the environment PATH variable I have something like this in my .bashrc file export PATH=/home/r
watadarkstar
watadarkstar
Did you ever figure this out?1 year ago