From 06611a6c2d3f0c451ff7f681c386a06dcd3d16d3 Mon Sep 17 00:00:00 2001 From: Michal Hlavinka Date: Thu, 13 Sep 2012 14:40:25 +0200 Subject: [PATCH] add support for direct execution of compiled scripts --- ksh.spec | 8 +++++++- kshcomp.conf | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 kshcomp.conf diff --git a/ksh.spec b/ksh.spec index 3cfbb87..363d39c 100644 --- a/ksh.spec +++ b/ksh.spec @@ -6,9 +6,10 @@ URL: http://www.kornshell.com/ Group: System Environment/Shells License: EPL Version: 20120801 -Release: 1%{?dist} +Release: 2%{?dist} Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz +Source2: kshcomp.conf Source3: kshrc.rhs Source4: dotkshrc #expected results of test suite @@ -63,6 +64,7 @@ install -c -m 644 arch/*/man/man1/sh.1 $RPM_BUILD_ROOT%{_mandir}/man1/ksh.1 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/skel install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.kshrc install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/kshrc +install -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/binfmt.d/kshcomp.conf %check %if 0%{?rhel} > 6 @@ -121,11 +123,15 @@ fi %{_mandir}/man1/* %config(noreplace) %{_sysconfdir}/skel/.kshrc %config(noreplace) %{_sysconfdir}/kshrc +%config(noreplace) %{_sysconfdir}/binfmt.d/kshcomp.conf %clean rm -rf $RPM_BUILD_ROOT %changelog +* Thu Sep 13 2012 Michal Hlavinka - 20120801-2 +- add support for direct execution of compiled scripts + * Wed Aug 08 2012 Michal Hlavinka - 20120801-1 - ksh updated to 20120801 diff --git a/kshcomp.conf b/kshcomp.conf new file mode 100644 index 0000000..b795f5b --- /dev/null +++ b/kshcomp.conf @@ -0,0 +1 @@ +':kshcomp:M::\x0b\x13\x08::/bin/ksh: