sorry about the delay posting here, but you know: no news, good news..
and mine were xactly that: this issue was fixed and I hurry up to finish the proggy involving all of this.
dunric:
despite of your last post gave me the idea of what to do, it continued having the problem I was traying to avoid: I didn't wanted to use the "source" word.. but just the script name. that was all about.
guess at this point is fair to tell how I did it:
here's the script that cannot be sourced by itself.. this is the solution I found:
Code:
#!/bin/sh
# this script is called ABC
echo "insert value:";read OPT
#here I don't try to source anymore, but
# ..I create a target file containing the options
echo "export LC_ALL=$OPT" > temp.file
what do we have at this point?
.a script owning the app name
.a file containging the results
but, again.. need the "source" world! this app is simplifying nothing at all!
how to invoke a script to perform a souce that it cannot perform??
...simple (I love this part):
Code:
echo "alias ABC='/usr/bin/ABC ; source temp.file'" >> /etc/profile
isn't it beauty?
--don't suggest to just change the name of /usr/bin/ABC,
coz it'll be invoked during boot-time as well, and invocation won't be to an alias.. at last the user don't have why to know all of this details, just one command.
want to thanks to all of you pals, just to be here helping eachother and making things work!
best regards!!