Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: Re: types "quad_t" & "u_quad_t" From: Hannu E K Nevalainen <_garbage_collector_ AT telia DOT com> To: cygwin AT cygwin DOT com In-Reply-To: <422E3793.6EE0A744@dessent.net> 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> <422E3793 DOT 6EE0A744 AT dessent DOT net> Content-Type: text/plain Date: Fri, 11 Mar 2005 20:02:31 +0100 Message-Id: <1110567752.4589.20.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On Tue, 2005-03-08 at 15:38 -0800, Brian Dessent wrote: > Hannu E K Nevalainen wrote: > > > $ cat >>.profile < > > > function od() { > > if [ -r "$1" ] ;then replace with: if [ -z "$1" ] || [ -r "$1" ] ; then for pipe-functionality using my special arguments. ...or rebuild this with "case ;... ;esac" instead... > > argline="-A x -v -t x1z -w24 $1" > > else > > # Problem with dual evaluation on argline? > > argline="$*" replace with "$@" here, at your preference, which IMO should be a better default. Read more after typing: $ man bash /Special parameters > > 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 Note 1: You stripped out the - i.e. my note to you that there likely was things that didn't work as you would have expected. Note 2: Did you find the behavior you pointed out hard to change? I didn't. And last: You got what you paid for as usual. -- Hannu E K Nevalainen <_garbage_collector_ KRINGLA telia.com> -- 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/