delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/03/08/18:35:19

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <422E3793.6EE0A744@dessent.net>
Date: Tue, 08 Mar 2005 15:38:59 -0800
From: Brian Dessent <brian AT dessent DOT net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: types "quad_t" & "u_quad_t"
References: <422CCEE0 DOT 9070408 AT tlinx DOT org> <422CDA77 DOT 2236DAA2 AT dessent DOT net> <422D0A5A DOT 2070607 AT tlinx DOT org> <422D0E03 DOT E59790A2 AT dessent DOT net> <1110309365 DOT 5616 DOT 10 DOT camel AT localhost DOT localdomain>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Hannu E K Nevalainen wrote:

> $ cat >>.profile <<EOD
> 
> function od() {
>   if [ -r "$1" ] ;then
>     argline="-A x -v -t x1z -w24 $1"
>   else
>     # Problem with dual evaluation on argline?
>     argline="$*"
>   fi
>   command od $argline
>   argline=
> }
> EOD

That doesn't work so well if you ever need to do "od file1 file2" or
"(some command) | od".  In the former case you only get the first file
and in the latter you don't get the options passed.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019