It is working correctly. You're naturally confused because fish special
cases PATH, MANPATH, and CDPATH. It automatically splits on colons when
importing those vars from the environment and joins the elements with
colons when exporting to an external command. It does not do that for any
other environment var. Not even those that have "PATH" in the name. This is
(sort of) documented:

fish automatically creates arrays from the variables PATH, CDPATH and
> MANPATH when it is started. (Previous versions created arrays from *all* 
> colon-delimited
> environment variables.)


See https://github.com/fish-shell/fish-shell/issues/436 for a proposal on
how to improve this via "tied variables". I was working the code for that
feature which would have made it into the fish 3.0 release. Sadly I stopped
working on fish when I decided I could no longer work with one of the other
devs so I didn't complete that work. And it doesn't look like any of the
remaining devs consider it important enough to include in the 3.0 release.


On Fri, May 11, 2018 at 12:53 PM, John Chludzinski <
john.chludzin...@gmail.com> wrote:

> I'm trying to set an env. var.:
>
> set -x LD_LIBRARY_PATH /usr/lib64 /lib64 /lib /usr/lib
> /mnt/ssd/OpenDDS/lib/ /mnt/ssd/OpenDDS/ACE_wrappers/lib/
>
> Then I run the Perl script:
>
> $ perl ./run_test.pl
> /mnt/ssd/OpenDDS/bin/DCPSInfoRepo -ORBDebugLevel 10 -ORBLogFile
> DCPSInfoRepo.log -o repo.ior
> /mnt/ssd/OpenDDS/bin/DCPSInfoRepo: error while loading shared libraries:
> libOpenDDS_InfoRepoServ.so.3.12.0: cannot open shared object file: No
> such file or directory
>
> I go into BASH:
>
> export LD_LIBRARY_PATH=/usr/lib64:/lib64:/lib:/usr/lib:/mnt/ssd/
> OpenDDS/lib/:/mnt/ssd/OpenDDS/ACE_wrappers/lib/
>
> Then the Perl script:
>
> $ perl ./run_test.pl
> /mnt/ssd/OpenDDS/bin/DCPSInfoRepo -ORBDebugLevel 10 -ORBLogFile
> DCPSInfoRepo.log -o repo.ior
> TAO (10880|140123965663040) - Completed initializing the process-wide
> service context
> TAO (10880|140123965663040) - Default ORB services initialization begins
> TAO (10880|140123965663040) - 
> ORBInitializer_Registry::register_orb_initializer
> 0 @0x219dea0
> TAO (10880|140123965663040) - 
> ORBInitializer_Registry::register_orb_initializer
> 1 @0x219de20
> TAO (10880|140123965663040) - Default ORB services initialization completed
> TAO (10880|140123965663040) - We are the default ORB ...
>
> Question: Why isn't the FISH 'set -x' command functioning as advertised?
>
> BTW> fish --version
> fish, version 2.6.0
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>


-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to