mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-10-31 06:00:54 +01:00 
			
		
		
		
	36754: Functions/TCP: Tweak some usage output in the tcp_* functions
This commit is contained in:
		
							parent
							
								
									0626be9e3c
								
							
						
					
					
						commit
						64061e504f
					
				
					 5 changed files with 11 additions and 5 deletions
				
			
		|  | @ -1,3 +1,9 @@ | ||||||
|  | 2015-10-03  Mikael Magnusson  <mikachu@gmail.com> | ||||||
|  | 
 | ||||||
|  | 	* 36754: Functions/TCP/tcp_open, Functions/TCP/tcp_read, | ||||||
|  | 	Functions/TCP/tcp_send, Functions/TCP/tcp_shoot: Tweak some | ||||||
|  | 	usage output in the tcp_* functions | ||||||
|  | 
 | ||||||
| 2015-10-02  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2015-10-02  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | ||||||
| 
 | 
 | ||||||
| 	* 36732: Completion/Unix/Command/_zsh: support -s and -b, | 	* 36732: Completion/Unix/Command/_zsh: support -s and -b, | ||||||
|  |  | ||||||
|  | @ -152,7 +152,7 @@ fi | ||||||
| 
 | 
 | ||||||
| if (( $# )); then | if (( $# )); then | ||||||
|   print "Usage: $0 [-z] [-a fd | -f fd | host port [ session ] ] |   print "Usage: $0 [-z] [-a fd | -f fd | host port [ session ] ] | ||||||
|   $0 [-z] [ -s session | -l sesslist ] ..." >&2 |        $0 [-z] [ -s session | -l sesslist ] ..." >&2 | ||||||
|   return 1 |   return 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -116,7 +116,7 @@ while getopts "abdl:qs:t:T:u:" opt; do | ||||||
| 	  read_fds[$((read_fd))]=1 | 	  read_fds[$((read_fd))]=1 | ||||||
| 	done | 	done | ||||||
| 	;; | 	;; | ||||||
|     (*) [[ $opt != \? ]] && print Unhandled option, complain: $opt >&2 |     (*) [[ $opt != \? ]] && print "Unhandled option, complain: $opt" >&2 | ||||||
| 	return 1 | 	return 1 | ||||||
|        ;; |        ;; | ||||||
|   esac |   esac | ||||||
|  |  | ||||||
|  | @ -29,7 +29,7 @@ while getopts "acl:nqs:" opt; do | ||||||
| 	    fi | 	    fi | ||||||
| 	    sessions+=($OPTARG) | 	    sessions+=($OPTARG) | ||||||
| 	    ;; | 	    ;; | ||||||
| 	(*) [[ $opt != '?' ]] && print Unhandled option, complain: $opt >&2 | 	(*) [[ $opt != '?' ]] && print "Unhandled option, complain: $opt" >&2 | ||||||
|             return 1 |             return 1 | ||||||
| 	    ;; | 	    ;; | ||||||
|     esac |     esac | ||||||
|  |  | ||||||
|  | @ -4,8 +4,8 @@ setopt extendedglob | ||||||
| local REPLY tfd | local REPLY tfd | ||||||
| 
 | 
 | ||||||
| if [[ $# -ne 2 ]]; then | if [[ $# -ne 2 ]]; then | ||||||
|     print "Usage: tcp_dump host port |     print "Usage: $0 host port | ||||||
| Connect to the given host and port; send standard input.">&2 | Connect to the given host and port; send standard input." >&2 | ||||||
|     return 1 |     return 1 | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue