mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	tests/options.sh: add forgotten SHOPT_BRACEPAT check (re: af5f7acf)
				
					
				
			This commit is contained in:
		
							parent
							
								
									af5f7acf99
								
							
						
					
					
						commit
						5be585f45b
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -53,7 +53,6 @@ struct shtable3
 | 
				
			||||||
#define sh_lookup(name,value)	(sh_locate(name,(Shtable_t*)(value),sizeof(*(value)))->sh_number)
 | 
					#define sh_lookup(name,value)	(sh_locate(name,(Shtable_t*)(value),sizeof(*(value)))->sh_number)
 | 
				
			||||||
extern const Shtable_t		shtab_testops[];
 | 
					extern const Shtable_t		shtab_testops[];
 | 
				
			||||||
extern const Shtable_t		shtab_options[];
 | 
					extern const Shtable_t		shtab_options[];
 | 
				
			||||||
extern const Shtable_t		shtab_options_posix[];
 | 
					 | 
				
			||||||
extern const Shtable_t		shtab_attributes[];
 | 
					extern const Shtable_t		shtab_attributes[];
 | 
				
			||||||
extern const struct shtable2	shtab_variables[];
 | 
					extern const struct shtable2	shtab_variables[];
 | 
				
			||||||
extern const struct shtable2	shtab_aliases[];
 | 
					extern const struct shtable2	shtab_aliases[];
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -539,7 +539,9 @@ if [[ -o ?posix ]]; then
 | 
				
			||||||
	(set +o posix; set --posix >/dev/null; [[ -o posix ]]) || err_exit "set --posix != set -o posix"
 | 
						(set +o posix; set --posix >/dev/null; [[ -o posix ]]) || err_exit "set --posix != set -o posix"
 | 
				
			||||||
	(set -o posix; set --noposix; [[ -o posix ]]) && err_exit "set --noposix != set +o posix"
 | 
						(set -o posix; set --noposix; [[ -o posix ]]) && err_exit "set --noposix != set +o posix"
 | 
				
			||||||
	(set -o posix +o letoctal; [[ -o letoctal ]]) && err_exit "failed to stop posix option from turning on letoctal"
 | 
						(set -o posix +o letoctal; [[ -o letoctal ]]) && err_exit "failed to stop posix option from turning on letoctal"
 | 
				
			||||||
 | 
					if((SHOPT_BRACEPAT)); then
 | 
				
			||||||
	(set +B; set -o posix -B; [[ -o braceexpand ]]) || err_exit "failed to stop posix option from turning off bracceexpand"
 | 
						(set +B; set -o posix -B; [[ -o braceexpand ]]) || err_exit "failed to stop posix option from turning off bracceexpand"
 | 
				
			||||||
 | 
					fi # SHOPT_BRACEPAT
 | 
				
			||||||
	(set --default -o posix; [[ -o letoctal ]]) && err_exit "set --default failed to stop posix option from changing others"
 | 
						(set --default -o posix; [[ -o letoctal ]]) && err_exit "set --default failed to stop posix option from changing others"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue