Shell scripts made simple 🐚
Previously, only a few select ~'...'
statements were being printed out, rather than any bash-string without any assignments to its left. This patch version fixes printing logic.
Fixes the previous broken build, refer #19
Refer #18
__name__
will now be '__main__'
, just like how it is when running any other file directlyzxpy
command is now supportedAnything passed as an f-string into a bash string will be automatically quoted with shlex.quote
.
i.e., ~f'{xyz}'
is the same as ~f'{shlex.quote(xyz)}
stdout, stderr, return_code = ~'...'
. Fixes #6expr
transformations. Cleaned up a bunch of AST code.print(~'echo test')
zx.start()
to zx.install()
for clarity(~f'...').splitlines()