Search Results

Search: Posts Made By: MadMage
4,235
Posted By MadMage
The main purpose of the script is to set some...
The main purpose of the script is to set some environment variables, so I MUST source it. However, the same script also manage a set of choices for these variables (i.e., it can create or remove an...
4,235
Posted By MadMage
I cannot "return" from a non-sourced script ...
I cannot "return" from a non-sourced script

$ ./test
./test: line 2: return: can only `return' from a function or sourced script

---------- Post updated at 06:09 PM ---------- Previous update...
4,235
Posted By MadMage
Quitting from a script, either sourced or not
This is a very simple problem, I am wondering why I can find no answer anywhere...

I have a script that can be run either sourced or not. This script has some place where it needs to quit...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy