mirror of
				git://git.code.sf.net/p/cdesktopenv/code
				synced 2025-03-09 15:50:02 +00:00 
			
		
		
		
	Fix spurious creation of '=' file (#98)
The following is quoted from Marcin Cieślak [*]: When running under FreeBSD /bin/sh (and not ksh) we get spurious file named '=' created in the root. This is because the "checksh" function runs /bin/sh -c '(( .sh.version >= 20111111 ))' which produces a "=" file with /bin/sh as a side effect. Fixes https://github.com/ksh93/ksh/issues/13 bin/package, src/cmd/INIT/package.sh: - Fix the creation of a spurious '=' file by making sure the shell has support for (( ... )) expressions. .gitignore: - Remove the '=' file entry since it no longer has a purpose. [*]: https://bsd.network/@saper/103196289917156347
This commit is contained in:
		
							parent
							
								
									af9c2144b8
								
							
						
					
					
						commit
						05081dfc1c
					
				
					 3 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -1,5 +1,4 @@
 | 
			
		|||
# Project-specific files
 | 
			
		||||
=
 | 
			
		||||
arch
 | 
			
		||||
tgz
 | 
			
		||||
lcl
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,6 +32,7 @@ esac
 | 
			
		|||
checksh()
 | 
			
		||||
{
 | 
			
		||||
	egrep 'Version.*(88|1993)' $1 >/dev/null 2>&1 ||
 | 
			
		||||
	PATH=/dev/null $1 -c '(( 2 + 2 ))' >/dev/null 2>&1 &&
 | 
			
		||||
	$1 -c '(( .sh.version >= 20111111 ))' >/dev/null 2>&1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,6 +31,7 @@ esac
 | 
			
		|||
checksh()
 | 
			
		||||
{
 | 
			
		||||
	egrep 'Version.*(88|1993)' $1 >/dev/null 2>&1 ||
 | 
			
		||||
	PATH=/dev/null $1 -c '(( 2 + 2 ))' >/dev/null 2>&1 &&
 | 
			
		||||
	$1 -c '(( .sh.version >= 20111111 ))' >/dev/null 2>&1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue