SHA256
1
0
forked from pool/tcsh
OBS User unknown 2008-10-06 17:09:46 +00:00 committed by Git OBS Bridge
parent 6058a1f9b2
commit e07db30557
3 changed files with 42 additions and 3 deletions

23
tcsh-6.15.00-blanks.dif Normal file
View File

@ -0,0 +1,23 @@
--- sh.misc.c
+++ sh.misc.c 2008-10-06 13:58:56.389867280 +0000
@@ -185,8 +185,18 @@ saveblk(Char **v)
onewv = newv = xcalloc(blklen(v) + 1, sizeof(Char **));
- while (*v)
- *newv++ = Strsave(*v++);
+ while (*v) {
+ Char *__restrict__ l = *v;
+ do {
+ int c;
+ if (!l || (c = TRM(*l)) != ' ' && c != '\t' && c != '\n')
+ break; /* strip blanks */
+ l++;
+ } while (*l);
+ *newv++ = Strsave(l);
+ v++;
+ }
+
return (onewv);
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 6 16:09:36 CEST 2008 - werner@suse.de
- Avoid blanks at the beginning of command lists (bnc#431661)
-------------------------------------------------------------------
Fri Jun 13 17:20:19 CEST 2008 - werner@suse.de

View File

@ -2,9 +2,16 @@
# spec file for package tcsh (Version 6.15.00)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
@ -19,7 +26,7 @@ Group: System/Shells
Requires: gawk textutils
AutoReqProv: on
Version: 6.15.00
Release: 65
Release: 89
Summary: The C SHell
Source: ftp.astron.com:/pub/tcsh/tcsh-6.15.00.tar.bz2
Source1: nls-iconv
@ -32,6 +39,7 @@ Patch3: tcsh-6.15.00-pipe.dif
Patch4: tcsh-6.15.00-longjmp.dif
Patch5: tcsh-6.15.00-norm-cmd.dif
Patch6: tcsh-6.15.00-history.dif
Patch7: tcsh-6.15.00-blanks.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -56,6 +64,7 @@ Authors:
%patch4 -p0 -b .longjmp
%patch5 -p0 -b .normcmd
%patch6 -p0 -b .history
%patch7 -p0 -b .blanks
%patch
sh $RPM_SOURCE_DIR/nls-iconv
@ -138,6 +147,8 @@ Authors:
%{_datadir}/locale/*/LC_MESSAGES/tcsh
%changelog
* Mon Oct 06 2008 werner@suse.de
- Avoid blanks at the beginning of command lists (bnc#431661)
* Fri Jun 13 2008 werner@suse.de
- Add complete rule for local executables ./*
* Thu Dec 20 2007 werner@suse.de