Thanks for the response, but ...
---------- Original Message -----------
From: "Todd A. Jacobs" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Sat, 11 Jan 2003 14:03:31 -0800 (PST)
Subject: Re: Passing args
> This doesn't look right. The brackets are too close, and will not be
> properly tokenized. On my system:
>
> $ type ged
> ged is a function
> ged ()
> {
> while [[ -n $1 ]]; do
> gedit $1 & shift;
> done
> }
>
> Works fine on *my* RH 8.0 system, using bash2. Don't know what the problem
> is on your end.
Todd, I am starting to feel like a real dummy. Try as I might, it just will
not fly for me. Would you please put the function in a file (say dummy - for
me). Then execute the following commands and post the results:
cat dummy
chmod 744 dummy
ls -al dummy
./dummy
type -t ged
ged test.file
We should be using the same version of bash
BASH=/bin/bash
BASH_ENV=/root/.bashrc
BASH_VERSINFO=([0]="2" [1]="05b" [2]="0" [3]="1" [4]="release"
[5]="i686-pc-linux-gnu")
BASH_VERSION='2.05b.0(1)-release'
Thank you for the help. Most frustrating that I cannot get it to work. I am
making a silly mistake somewhere, just cannot seem to find it.
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list