linux - Can a shell script set environment variables of the calling shell? - Stack Overflow

linux - Can a shell script set environment variables of the calling shell? - Stack Overflow

瀏覽:420
日期:2025-06-08
I'm trying to write a shell script that, when run, will set some environment variables that will stay set in the caller's shell. setenv FOO foo in csh/tcsh, or export FOO=foo in sh/bash ......看更多