mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	don't run posix mode regress tests on ksh without -o posix
This commit is contained in:
		
							parent
							
								
									c049eec854
								
							
						
					
					
						commit
						76d71889e2
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -109,8 +109,9 @@ fi
 | 
				
			||||||
if	[[ -o ?posix && $("$SHELL" -o posix -c 'xi=xi+4;echo $xi') != "xi+4" ]]
 | 
					if	[[ -o ?posix && $("$SHELL" -o posix -c 'xi=xi+4;echo $xi') != "xi+4" ]]
 | 
				
			||||||
then	err_exit "attributes imported despite posix mode (-o posix)"
 | 
					then	err_exit "attributes imported despite posix mode (-o posix)"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
ln -s "$SHELL" "$tmp/sh"
 | 
					if	[[ -o ?posix ]] &&
 | 
				
			||||||
if	[[ $("$tmp/sh" -c 'xi=xi+4;echo $xi') != "xi+4" ]]
 | 
						ln -s "$SHELL" "$tmp/sh" &&
 | 
				
			||||||
 | 
						[[ $("$tmp/sh" -c 'xi=xi+4;echo $xi') != "xi+4" ]]
 | 
				
			||||||
then	err_exit "attributes imported despite posix mode (invoked as sh)"
 | 
					then	err_exit "attributes imported despite posix mode (invoked as sh)"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
x=$(foo=abc $SHELL <<!
 | 
					x=$(foo=abc $SHELL <<!
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -534,6 +534,7 @@ print $'alias print=:\nprint foobar' > dotfile
 | 
				
			||||||
# ======
 | 
					# ======
 | 
				
			||||||
# test that '-o posix' option (not having a letter) does not affect "$-" expansion
 | 
					# test that '-o posix' option (not having a letter) does not affect "$-" expansion
 | 
				
			||||||
# other than B = braceexpand
 | 
					# other than B = braceexpand
 | 
				
			||||||
 | 
					if [[ -o ?posix ]]; then
 | 
				
			||||||
(
 | 
					(
 | 
				
			||||||
	command set +o posix 2>/dev/null
 | 
						command set +o posix 2>/dev/null
 | 
				
			||||||
	opt1=${-/B/}
 | 
						opt1=${-/B/}
 | 
				
			||||||
| 
						 | 
					@ -541,6 +542,7 @@ print $'alias print=:\nprint foobar' > dotfile
 | 
				
			||||||
	opt2=$-
 | 
						opt2=$-
 | 
				
			||||||
	[[ $opt1 == "$opt2" ]]
 | 
						[[ $opt1 == "$opt2" ]]
 | 
				
			||||||
) || err_exit '-o posix option affects $- expansion'
 | 
					) || err_exit '-o posix option affects $- expansion'
 | 
				
			||||||
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ======
 | 
					# ======
 | 
				
			||||||
# ksh 93u+ did not honor 'monitor' option on command line (rhbz#960034)
 | 
					# ksh 93u+ did not honor 'monitor' option on command line (rhbz#960034)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue