+
    IV-j9  ã                   óÂ   € ^ RI t ^ RIt^RIHtHt ^RIHtHt ]P                  ! R]P                  4      t
RR ltR t]P                  ! R4      R03.tR	 tR
 tRR ltR# )é    N)ÚSHELL_NAMESÚShellDetectionFailure)ÚprocÚpsad  qemu-
        (alpha
        |armeb
        |arm
        |m68k
        |cris
        |i386
        |x86_64
        |microblaze
        |mips
        |mipsel
        |mips64
        |mips64el
        |mipsn32
        |mipsn32el
        |nios2
        |ppc64
        |ppc
        |sh4eb
        |sh4
        |sparc
        |sparc32plus
        |sparc64
    )c                óŠ   € \         \        3 F  p VP                  W4      pVu # 	  \	        R4      h  \         d     K4  i ; i)z•Select a way to obtain process information from the system.

* `/proc` is used if supported.
* The system `ps` utility is used as a fallback option.
z,compatible proc fs or ps utility is required)r   r   Úiter_process_parentsÚEnvironmentErrorr   )ÚpidÚ	max_depthÚimplÚiterators   &&  Úk/Volumes/fast/ai/experiments/ui-tars-smoke/.venv/lib/python3.14/site-packages/shellingham/posix/__init__.pyÚ_iter_process_parentsr   %   sP   € ô ”r“
ˆð	Ø×0Ñ0°Ó@ˆHð Šñ ô  Ð NÓ
OÐOøô  ô 	Úð	ús   ‘3³AÁAc                óÈ   € \         P                  P                  RR4      pV'       d   Tp M	V R,          p \         P                  P	                  V 4      P                  4       V 3# )z6Form shell information from SHELL environ if possible.ÚSHELLÚ ºé   NN)ÚosÚenvironÚgetÚpathÚbasenameÚlower)Úproc_cmdÚlogin_shells   & r   Ú_get_login_shellr   4   sJ   € ä—*‘*—.‘. ¨"Ó-€KßØ‰à˜B•<ˆÜ�G‰G×Ñ˜XÓ&×,Ñ,Ó.°Ð9Ð9ó    z^python(\d+(\.\d+)?)?$Úxonshc                ó*  € \          Fˆ  w  r#VP                  V 4      '       g   K  V Fd  p\        P                  P	                  V4      P                  4       p\        P                  P                  V4      '       g   KW  WS9   g   K_  WT3u u # 	  KŠ  	  R# )a>  Get shell invoked via an interpreter.

Some shells are implemented on, and invoked with an interpreter, e.g. xonsh
is commonly executed with an executable Python script. This detects what
script the interpreter is actually running, and check whether that looks
like a shell.

See sarugaku/shellingham#26 for rational.
N)Ú_INTERPRETER_SHELL_NAMESÚmatchr   r   r   r   Úisfile)Ú	proc_nameÚ	proc_argsÚpatternÚshell_namesÚargÚnames   &&    r   Ú_get_interpreter_shellr*   C   so   € ÷ !9ÑˆØ�}‰}˜Y×'Ò'ÙÛˆCÜ—7‘7×#Ñ# CÓ(×.Ñ.Ó0ˆDÜ�w‰w�~‰~˜c×"Ô" tÖ':Ø�{Ô"ó ñ !9ñ r   c                 ó¬  € V P                  R 4      '       d   \        V 4      # \        P                  P	                  V 4      P                  4       pVR8X  g   \        P                  V4      '       d@   V^ ,          p VR,          p\        P                  P	                  V 4      P                  4       pV\        9   d   W 3# \        W!4      pV'       d   V# R# )Ú-Úrosettar   N)
Ú
startswithr   r   r   r   r   ÚQEMU_BIN_REGEXÚ	fullmatchr   r*   )ÚcmdÚargsr)   Úshells   &*  r   Ú
_get_shellr4   W   s§   € Ø
‡~�~�c×ÒÜ Ó$Ð$Ü�7‰7×Ñ˜CÓ ×&Ñ&Ó(€DØˆyÔœN×4Ñ4°T×:Ò:ð �1�gˆØ�B�xˆÜ�w‰w×Ñ Ó$×*Ñ*Ó,ˆØŒ{ÔØˆ{ÐÜ" 4Ó.€EßØˆÙr   c                ó¬   € \        T ;'       g    \        P                  ! 4       4      p \        W4       F  w  p p\	        V!  pV'       g   K  Vu # 	  R# )zAGet the shell that the supplied pid or os.getpid() is running in.N)Ústrr   Úgetpidr   r4   )r
   r   r%   Ú_r3   s   &&   r   Ú	get_shellr9   i   sI   € ä
ˆc× Ð ”R—Y’Y“[Ó
!€CÜ0°Ö@‰ˆ	�1�aÜ˜IÑ&ˆß‰5ØŠLñ Añ r   )é
   )Nr:   )r   ÚreÚ_corer   r   r   r   r   ÚcompileÚVERBOSEr/   r   r   r!   r*   r4   r9   © r   r   Ú<module>r@      sg   ðÛ 	Û 	ç 6ß ð —’ð	ð0 ‡J�Jó3€ô:Pò:ð ‡Z‚ZÐ)Ó*¨W¨IÐ6ðÐ ò
ò(ö$r   