This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Attn. Maintainer] /etc/profile.d/lapack0.csh


The profile script for csh does not work as intended.  Since it must be
sourced, it leaves variables set in the user shell and potentially
clobbers variables the user might use ($newpath is just too obvious a
name).  Something like this should be more robust:

--8<---------------cut here---------------start------------->8---
set __LA_BINDIR=/usr/lib/lapack

set __LA_PATH=($path:q $__LA_BINDIR:q)
foreach __LA_F ($path:q)
    if ( "$__LA_F" == "$__LA_BINDIR" ) then
        set __LA_PATH=($path:q)
        break
    endif
end
set path=($__LA_PATH:q)
unset __LA_*
--8<---------------cut here---------------end--------------->8---


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]