Project

General

Profile

« Previous | Next » 

Revision 8974

lib/util.sh: zip_newer/unzip_newer: evaluate $no_force at alias expansion time rather than at alias compile time, so that the $no_force can be overridden in the context the alias is used in

View differences:

lib/util.sh
256 256
unzip () { stdout2stderr=1 self "$@"; }
257 257

  
258 258
set_inv force
259
alias zip_newer="zip${no_force:+ -u}"
260
alias unzip_newer="unzip${no_force:+ -u} -o"
259
alias zip_newer='zip ${no_force:+-u }'
260
alias unzip_newer='unzip ${no_force:+-u }-o'
261 261
	# -o is safe because -u only extracts newer files
262 262

  
263 263
#### URLs

Also available in: Unified diff