From 945907531ed6a4ec3438b33c565fe93718c011ce Mon Sep 17 00:00:00 2001 From: Assaf Lavie Date: Thu, 1 Jun 2017 13:40:43 +0300 Subject: [PATCH 1/2] If using saws from bash, then use the same shell when invoking commands. This lets you do nice stuff like: `aws s3 cp s3://some/file >(cat)` --- saws/saws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saws/saws.py b/saws/saws.py index 92af4212..6bb6e86a 100644 --- a/saws/saws.py +++ b/saws/saws.py @@ -386,7 +386,7 @@ def _process_command(self, text): if not self._handle_cd(text): text = self._colorize_output(text) # Pass the command onto the shell so aws-cli can execute it - subprocess.call(text, shell=True) + subprocess.call(text, shell=True, executable=os.getenv("SHELL", "/bin/sh")) print('') except KeyboardInterrupt as e: self._handle_keyboard_interrupt(e, platform.system()) From d1c546b70e7cc7152f20cee70d84c796747938c0 Mon Sep 17 00:00:00 2001 From: assaf <233414+lavie@users.noreply.github.com> Date: Wed, 26 Dec 2018 09:03:27 +0200 Subject: [PATCH 2/2] trying latest prompt-toolkit --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e8534829..63b492b0 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ 'awscli>=1.7.46,<2.0.0', 'click>=4.0,<7.0', 'configobj>=5.0.6,<6.0.0', - 'prompt-toolkit>=1.0.0,<1.1.0', + 'prompt-toolkit>=1.0.0', 'six>=1.9.0,<2.0.0', 'pygments>=2.0.2,<3.0.0' ]