How to write a setevn/export script that will work in both csh and bash?
Fresh3 days ago
Mar 15, 202612578 viewsConfidence Score0%
0%
Problem
In my environment (RHEL) I have a bunch of script that are written in either csh or bash. Some of them are used to deal with a tomcat server. I want to keep the definitions of CATALINA_HOME and CATALINA_BASE in one place, such that csh and bash script can source the variables from one single file. …
Error Output
. ~/tomcat.settings
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to write a setevn/export script that will work in both csh and bash?
Low Risk
Don't try to make the same script portable between two completely different shells. Even compatibility of sh and bash is hard to achieve, and those use the same syntax... (I can't even imagine how one can stand csh in the first place.) Write your se…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix