[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Jacob Sparre Andersen <sslug@sslug> writes: >> ala >> >> alias chdir="exec $HOME/bin/chdir" >> >> ind i sin .bashrc > > Jeg kan ikke lige regne ud hvilken effekt det vil have. Må vi få det > forklaret? (så skal jeg nok hjælpe med at drikke Corsendonken) Det gør illusionen lidt mere overbevisende: sslug@sslug:~$ echo pid: $$ Antal shell: $SHLVL pid: 21370 Antal shell: 2 sslug@sslug:~$ /tmp/chdir . Trying to change directory to . Directory succesfulled changed to /home/brother sslug@sslug:~$ echo pid: $$ Antal shell: $SHLVL pid: 21389 Antal shell: 3 sslug@sslug:~$ exit exit sslug@sslug:~$ echo pid: $$ Antal shell: $SHLVL pid: 21370 Antal shell: 2 sslug@sslug:~$ exec /tmp/chdir . Trying to change directory to . Directory succesfulled changed to /home/brother sslug@sslug:~$ echo pid: $$ Antal shell: $SHLVL pid: 21370 Antal shell: 2 sslug@sslug:~$ Istedet for at kalde et program der erstatter sig selv med en shell, så erstatter vi den eksisterende shell med et program der erstatter sig med en shell. Prøv også at følge med i pstree hvad der sker. -- Peter Makholm | Yes, you can fight it, but in the end the ultimate sslug@sslug | goal of life is to have fun http://hacking.dk | -- Linus Torvalds
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |