HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib/python3.9/site-packages/ansible/plugins/shell/__pycache__/sh.cpython-39.pyc
a

�)gp�@sDddlmZmZmZeZdZddlZddlm	Z	Gdd�de	�Z
dS)�)�absolute_import�division�print_functiona

name: sh
short_description: "POSIX shell (/bin/sh)"
version_added: historical
description:
  - This shell plugin is the one you want to use on most Unix systems, it is the most compatible and widely installed shell.
extends_documentation_fragment:
  - shell_common
N)�	ShellBasec@sHeZdZed�ZdZdZdZdZdZ	dZ
dZd	Zd
Z
dZdZd
d�ZdS)�ShellModule)�shZzshZbashZdashZkshrZecho�;�
z> /dev/null 2>&1z&&z||z"`z`"�(�)cCsht�|�}dt|||j|jd�}d�|||j�d�|||j�g}d|j�|�}d|||j|f}|S)Nz�rc=flag; [ -r %(p)s ] %(shell_or)s rc=2; [ -f %(p)s ] %(shell_or)s rc=1; [ -d %(p)s ] %(shell_and)s rc=3; %(i)s -V 2>/dev/null %(shell_or)s rc=4; [ x"$rc" != "xflag" ] %(shell_and)s echo "${rc}  "%(p)s %(shell_and)s exit 0)�p�iZ	shell_andZshell_ora({0} -c 'import hashlib; BLOCKSIZE = 65536; hasher = hashlib.sha1();{2}afile = open("'{1}'", "rb"){2}buf = afile.read(BLOCKSIZE){2}while len(buf) > 0:{2}	hasher.update(buf){2}	buf = afile.read(BLOCKSIZE){2}afile.close(){2}print(hasher.hexdigest())' 2>/dev/null)z�({0} -c 'import sha; BLOCKSIZE = 65536; hasher = sha.sha();{2}afile = open("'{1}'", "rb"){2}buf = afile.read(BLOCKSIZE){2}while len(buf) > 0:{2}	hasher.update(buf){2}	buf = afile.read(BLOCKSIZE){2}afile.close(){2}print(hasher.hexdigest())' 2>/dev/null)z %s z%s; %s %s (echo '0  '%s))�shlex�quote�dict�
_SHELL_AND�	_SHELL_OR�format�_SHELL_EMBEDDED_PY_EOL�join)�self�pathZ
python_interpZshell_escaped_path�testZcsums�cmd�r�</usr/lib/python3.9/site-packages/ansible/plugins/shell/sh.py�checksum/s
�zShellModule.checksumN)�__name__�
__module__�__qualname__�	frozensetZCOMPATIBLE_SHELLSZSHELL_FAMILYZECHOZCOMMAND_SEPrZ_SHELL_REDIRECT_ALLNULLrrZ_SHELL_SUB_LEFTZ_SHELL_SUB_RIGHTZ_SHELL_GROUP_LEFTZ_SHELL_GROUP_RIGHTrrrrrrsr)Z
__future__rrr�typeZ
__metaclass__Z
DOCUMENTATIONrZansible.plugins.shellrrrrrr�<module>s