20 Apr
2026
20 Apr
'26
2:50 p.m.
From: Giles Orr via Talk <talk@lists.gtalug.org>
I can name one other circumstance where I've used `source` to run a script. A bit hacky, but useful. Sometimes partitions or external media are mounted with the execute bit set off. (This is a good security practice for unknown media, but annoying for "my" drives.) In that case, you can't directly run the script. You either have to copy it to another part of the filesystem or use `source`. It works - mostly.
Right. Maybe use ( . scriptfile ) to avoid affecting your environment?