update comments and vars
This commit is contained in:
		
							parent
							
								
									0a52353444
								
							
						
					
					
						commit
						35429455ee
					
				| @ -1,7 +1,7 @@ | ||||
| # usage | ||||
| source ./parseargs.sh | ||||
| export -f parseargs | ||||
| IFS=$'\r\n' GLOBIGNORE='*' args=($(parseargs "foo 'bar baz' qux *")) | ||||
| MY_ARGS="foo 'bar baz' qux * "'$(dangerous)'" sudo ls -lah" | ||||
| IFS=$'\r\n' GLOBIGNORE='*' args=($(parseargs "$MY_ARGS")) | ||||
| echo '$@': "${args[@]}" | ||||
| for arg in "${args[@]}"; do | ||||
| 	echo "$arg" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user