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

瀏覽:1275
日期:2024-07-12
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 ......看更多