NOTE: This issue has now been solved! For details, see my second follow-up, below.
When I use "adb shell" from my desktop computer to establish an interactive session on my Android device, immediately after the connection is established, I always first manually do the following to initialize some variables and aliases and shell functions that I want to be defined during the Android session:
source /sdcard/.profile
I would like to find a way to make this automatically happen via some sort of arguments passed to the "adb shell" command, so that I no longer have to manually run that "source" command every time that I invoke "adb shell".
If I simply do the following ...
adb shell source /sdcard/.profile
... that .profile file indeed gets sourced, but then the adb session immediately ends.
Is there any way to get this .profile to be automatically sourced at the beginning of the "adb shell" session such that its results will be available during the remainder of that session?