From e076f2c23975eb7d0110f8e2c746bee325e78c6c Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Wed, 15 Aug 2007 07:42:57 +1000 Subject: [PATCH] Make the contains builtin not allow reordering of switches and non-switches darcs-hash:20070814214257-75c98-a50161a8146dfd0a6c6a948e1960f93dd52275fd.gz --- builtin.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/builtin.c b/builtin.c index 98fd825ab..0cf6f9c07 100644 --- a/builtin.c +++ b/builtin.c @@ -2306,7 +2306,7 @@ static int builtin_contains( wchar_t ** argv ) int opt = wgetopt_long( argc, argv, - L"h", + L"+h", long_options, &opt_index ); if( opt == -1 ) @@ -2360,9 +2360,7 @@ static int builtin_contains( wchar_t ** argv ) } } return 1; - - - + }