[st] Pass command line parameters to respective binaries in st-user (#1129557)
Petr Šabata
psabata at fedoraproject.org
Wed Aug 13 08:22:10 UTC 2014
commit f33126550b0a02e0e11402aba366cc4fdccf66c4
Author: Petr Šabata <contyk at redhat.com>
Date: Wed Aug 13 10:22:13 2014 +0200
Pass command line parameters to respective binaries in st-user (#1129557)
st-user | 6 +++---
st.spec | 5 ++++-
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/st-user b/st-user
index 5b7e665..1feb7c8 100644
--- a/st-user
+++ b/st-user
@@ -37,12 +37,12 @@ patchmod=0
function run_custom {
echo "${name}: Running user ${tool}..." 1>&2
- ${bindir}/${tool}
+ ${bindir}/${tool} $@
}
function run_system {
echo "${name}: Running system ${tool}..." 1>&2
- /usr/bin/${tool}-fedora
+ /usr/bin/${tool}-fedora $@
}
function rebuild {
@@ -91,4 +91,4 @@ if [ -f ${config} -o -d ${patches} ]; then
rebuild
fi
fi
-[ -x ${bindir}/${tool} ] && run_custom || run_system
+[ -x ${bindir}/${tool} ] && run_custom $@ || run_system $@
diff --git a/st.spec b/st.spec
index bc16885..a16e2fa 100644
--- a/st.spec
+++ b/st.spec
@@ -1,6 +1,6 @@
Name: st
Version: 0.5
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A simple terminal implementation for X
%global _stsourcedir %{_usrsrc}/%{name}-user-%{version}-%{release}
@@ -97,6 +97,9 @@ fi
%{_stsourcedir}
%changelog
+* Wed Aug 13 2014 Petr Šabata <contyk at redhat.com> - 0.5-4
+- Pass command line parameters to respective binaries in st-user (#1129557)
+
* Thu Jun 26 2014 Petr Šabata <contyk at redhat.com> - 0.5-3
- Introduce the `user' subpackage
More information about the scm-commits
mailing list