Can I "export" an alias to the SHELL that invoked a script?
--------------------------------------------------
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping
--
Chapters
00:00 Question
00:51 Accepted answer (Score 34)
01:14 Thank you
--
Full question
https://superuser.com/questions/447487/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#shellscript #alias #tcsh
#avk47
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping
--
Chapters
00:00 Question
00:51 Accepted answer (Score 34)
01:14 Thank you
--
Full question
https://superuser.com/questions/447487/c...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#shellscript #alias #tcsh
#avk47
ACCEPTED ANSWER
Score 35
You can't. By running your script you execute a new shell. Aliases will not be seen by the parent process.
The only way as pointed out is using source
so that the current shell processes your script file (without starting a new process).