Bash bug?
by Zoltan Boszormenyi
Hi,
I am trying something like the following,
with a configuration file containing a token and
a directory in a line, depending on the tokens,
certain actions should be taken later. Validating
the configuration file whether all the required/optional
tokens are in the file should go like this:
-----a.txt----------------------
A directory1
B directory2
C directory3
--------------------------------
-----a.sh-----------------------
#!/bin/bash
HAS_A=0
HAS_B=0
HAS_C=0
cat a.txt | while read i ; do
if [ "`echo $i | awk '{ print $1 }'`" = "A" ]; then
HAS_A=1
fi
if [ "`echo $i | awk '{ print $1 }'`" = "B" ]; then
HAS_B=1
fi
if [ "`echo $i | awk '{ print $1 }'`" = "C" ]; then
HAS_C=1
fi
echo "A: $HAS_A B: $HAS_B C: $HAS_C"
done
echo "Final A: $HAS_A B: $HAS_B C: $HAS_C"
--------------------------------
Result is:
--------------------------------
$ ./a.sh
A: 1 B: 0 C: 0
A: 1 B: 1 C: 0
A: 1 B: 1 C: 1
Final A: 0 B: 0 C: 0
--------------------------------
It seems to be a bug to me, the envvars lose their values
they gained in the loop. It's an ancient bug I must add,
I just rechecked it and bash in RedHat 7.1 behaves the same.
How can I preserve the variables' values? Putting "export"
in front of every assignments doesn't help.
Best regards,
Zoltán Böszörményi
18 years, 7 months
KNode - how to view recent postings?
by Timothy Murphy
I'm still trying to work out how to look up recent postings,
say those in the last 24 hours.
I've tried what seems the obvious way of creating a "24hr" filter,
but this does not work.
If anyone has managed to do this, could they explain how, please.
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
18 years, 7 months
RE: NEWBIE to yum and apt-get on FC4
by Edward.D.Kramer@wellsfargo.com
I guess I should rephrase what Im looking for, I need some Repo's that will contain items like mplayer, Xine, or even better yet GNUPOD. Maybe I am missing something here with my commands:
Yum install mplayer
Returns back
No Match for argument: mplayer
Nothing to do
I would expect this is me needing a new Repo to connect into that contains the application Im looking for.
Thanks,
DK
-----Original Message-----
From: fedora-list-bounces(a)redhat.com [mailto:fedora-list-bounces@redhat.com] On Behalf Of Markku Kolkka
Sent: Tuesday, September 27, 2005 04:38 AM
To: fedora-list(a)redhat.com
Subject: Re: NEWBIE to yum and apt-get on FC4
Edward.D.Kramer(a)wellsfargo.com kirjoitti viestissään (lähetysaika
tiistai, 27. syyskuuta 2005 02:15):
> I have the basic
> three apt-get Fedora sites, can someone send me some
> additional sources that contain XINE or GNUPOD? Or point me
> in the right direction for obtaining the URLs for other
> packages to FC4.
http://www.fedorafaq.org/#getsoftware
--
Markku Kolkka
markku.kolkka(a)iki.fi
--
fedora-list mailing list
fedora-list(a)redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
18 years, 7 months
KAddressBook - again
by Timothy Murphy
I'm still looking for the AddressBook handbook.
I just have a vestigial version, with 3 more or less empty chapters.
Someone posted a long index of the version they had.
But they never explained what RPM it came with.
I have the latest stable kdepim and kdepim-devel ,
and neither of them seem to have the full handbook.
What exactly is the handbook file called?
(Maybe I have it but have lost the link?)
If you use KAddressBook and have the full handbook,
please see if you can work out which RPM it comes from.
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
18 years, 7 months
Knowing when a certain bug of gtk-qt-engine is corrected
by Paul Smith
Dear All
Some time ago, I reported here a bug on gtk-qt-engine, which I have
meanwhile removed from my computer. Since gtk-qt-engine is not
installed, I cannot know when a new (corrected) version of it is
released. Is there some automatic way of being informed when the bug
is corrected in a new version, other than
yum list gtk-qt-engine ?
Thanks in advance,
Paul
18 years, 7 months
Re: Error with updating the system
by Sharon Kimble
Paul Smith wrote:
> Resolving Dependencies
> --> Populating transaction set with selected packages. Please wait.
> ---> Package mjpegtools.i386 0:1.8.0-0.lvn.1.4 set to be updated
> --> Running transaction check
> --> Processing Dependency: libmjpegutils-1.7.so.0 for package: transcode
> --> Finished Dependency Resolution
> Error: Missing Dependency: libmjpegutils-1.7.so.0 is needed by package
> transcode
>
I see that livna has transcode 1.0.0-0.lvn.3.3 in their unstable repo since
28th September, so its obviously being tested out.
Sharon.
--
13:43:14 up 6 days, 15:42, 2 users, load average: 1.91, 1.63, 1.47
A taste of linux http://www.sharons.org.uk/taste/index.html
efever http://www.efever.blogspot.com/
Fedora Core 4, KDE 3.4.2-1.2, OpenOffice 1.9.117
Registered Linux user 334501
18 years, 7 months
Using 32bit FC4 on CeleronD 64bit?
by Fennix
Is there any problem to install FC4 I386 onto the 64bit CeleronD or
must I use just the 64 bit version?
Another question....I am running FC4 on my work computer and now have
a subscription alert message. Fedora is the open version unlike the
current RedHat releases. Is there any need to enable the subscripion?
I do not think subscribing is required for FC4 updates/patches....
Fennix
18 years, 7 months
fc4 on AMD64 dual core
by Amadeus W.M.
Just wondering what are people's experiences on dual core AMD64. Is this
architecture fully supported by fc4? Is fc4 stable on this architecture?
Is fc4 optimized for amd64 x2?
I looked up the recommended motherboards at the AMD web site and all but a
few had an Nvidia chipset (the others VIA). Do I have to worry about
drivers? Do I have to download drivers from Nvidia the way we do for the
Nvidia video cards each time we upgrade the kernel? Which chipset is
natively supported by fc4?
Thanks!
18 years, 7 months