remove regression-44 in favour of utilities-getopts-1 (the former checked
the AT&T ksh88 behaviour, the latter the AT&T ksh93 behaviour, which dif- fer from each other, on the very same thing with the exact same test)
This commit is contained in:
		
							
								
								
									
										17
									
								
								check.t
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								check.t
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| # $MirOS: src/bin/mksh/check.t,v 1.330 2009/10/15 16:24:49 tg Exp $ | ||||
| # $MirOS: src/bin/mksh/check.t,v 1.331 2009/10/15 16:32:23 tg Exp $ | ||||
| # $OpenBSD: bksl-nl.t,v 1.2 2001/01/28 23:04:56 niklas Exp $ | ||||
| # $OpenBSD: history.t,v 1.5 2001/01/28 23:04:56 niklas Exp $ | ||||
| # $OpenBSD: read.t,v 1.3 2003/03/10 03:48:16 david Exp $ | ||||
| @@ -3465,21 +3465,6 @@ description: | ||||
| stdin: | ||||
| 	< /dev/null (sed 's/^/X/') | ||||
| --- | ||||
| name: regression-44 | ||||
| description: | ||||
| 	getopts sets OPTIND correctly for unparsed option | ||||
| stdin: | ||||
| 	set -- -a -a -x | ||||
| 	while getopts :a optc; do | ||||
| 	    echo "OPTARG=$OPTARG, OPTIND=$OPTIND, optc=$optc." | ||||
| 	done | ||||
| 	echo done | ||||
| expected-stdout: | ||||
| 	OPTARG=, OPTIND=2, optc=a. | ||||
| 	OPTARG=, OPTIND=3, optc=a. | ||||
| 	OPTARG=x, OPTIND=3, optc=?. | ||||
| 	done | ||||
| --- | ||||
| name: regression-45 | ||||
| description: | ||||
| 	Parameter assignments with [] recognised correctly | ||||
|   | ||||
		Reference in New Issue
	
	Block a user