Skip to content

Commit 4d36d7d

Browse files
committed
Fixed shell chaining
1 parent c9e9981 commit 4d36d7d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ python3 -m pip install niceshell
1616

1717
```bash
1818
cd /tmp/
19-
version=1.0.2 # Choose desired version
19+
version=1.0.3 # Choose desired version
2020
wget -c "https://github.com/Andrew15-5/niceshell/releases/download/v${version}/niceshell-${version}-py3-none-any.whl"
2121
python3 -m pip -U --user install niceshell-${version}-py3-none-any.whl
2222
```

niceshell/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"normalize_short_and_long_args", "quotes_wrapper", "rm", "shell",
2121
"Shell", "ShortArgsOption", "UID", "USER"]
2222
__author__ = "Andrew Voynov"
23-
__version__ = "1.0.2"
23+
__version__ = "1.0.3"
2424

2525
GID = Shell("id -g").output()[:-1]
2626
GROUP = Shell("id -gn").output()[:-1]

niceshell/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def shell(self, command, input_text=None,
378378
Shell: class instance that can be chained.
379379
"""
380380
if stdin == "parent fd":
381-
stdin = self.__create_stdout_fd(self.__output)
381+
stdin = self.__create_stdout_fd(self.output())
382382
elif isinstance(stdin, str):
383383
stdin = self.__create_stdout_fd(stdin)
384384
shell = Shell(command, input_text, stdin, stdout, stderr)

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
setuptools.setup(
77
name="niceshell",
8-
version="1.0.2",
8+
version="1.0.3",
99
author="Andrew Voynov",
1010
author_email="[email protected]",
1111
description="Integration of shell and basic GNU core unilities for better coding.",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
license="MIT",
1515
url="https://github.com/Andrew15-5/niceshell",
16-
download_url="https://github.com/Andrew15-5/niceshell/releases/download/v1.0.2/niceshell-1.0.2-py3-none-any.whl",
16+
download_url="https://github.com/Andrew15-5/niceshell/releases/download/v1.0.3/niceshell-1.0.3-py3-none-any.whl",
1717
packages=["niceshell", "niceshell/tests"],
1818
package_data={
1919
"niceshell": ['*']

0 commit comments

Comments
 (0)