The UNIX command "/ usr / bin / script" will create the current session decryption for your shell (see the "man script" for details).
However, when inside the script instance, it seems to forget the parent shell of env vars, aliases, etc.
The following example shows how the alias "ll" that I define is ignored inside the "script":
zsh> mkdir temp
zsh> cd temp
zsh> alias "ll=ls -alF"
zsh> ll
total 24
drwxr-xr-x 2 me mygroup 4096 Feb 18 13:32 ./
drwxr-xr-x 28 me mygroup 8192 Feb 18 13:32 ../
zsh> script a.out
Script started, file is a.out
$ ll
zsh: command not found: ll
$ exit
Script done, file is a.out
zsh> ll
total 32
drwxr-xr-x 2 me mygroup 4096 Feb 18 13:32 ./
drwxr-xr-x 28 me mygroup 8192 Feb 18 13:32 ../
-rw-r--r-- 1 me mygroup 182 Feb 18 13:32 a.out
So, how can I make the script process inherit the env settings from the parent shell?
[EDIT:] Alright, env vars are not forgotten. Just aliases. Re-sourcing.profile or something will work ... but how can I do this automatically ?