Linux-Misc Digest #959, Volume #26               Sun, 28 Jan 01 23:13:04 EST

Contents:
  Re: Looking for Math Software ([EMAIL PROTECTED])
  Re: MS to Enforce Registration - or Else (Michel Catudal)
  Help: Command-Line Editing Issues (Bob Simon)
  Kernel upgrade ("WME")
  Re: HELP!  Can't ls or rm directory / logrotate (Robert Lynch)
  Re: Looking for Math Software ("G Pollack")
  Re: MS to Enforce Registration - or Else ("Aaron R. Kulkis")
  Re: bash2 on Redhat6.2 (Hal Burgiss)
  increasing open file limit ([EMAIL PROTECTED])
  Re: MS to Enforce Registration - or Else ("Aaron R. Kulkis")
  FA:IBM ThinkPad 365XD p133/24mb/1gb/cdrom/Linux +MORE!!!!!!!!! (schlomo)
  Re: MS to Enforce Registration - or Else ("Aaron R. Kulkis")
  Re: why can't i find any good  GUI file managers? (Gregory Spath)
  Re: Looking for Math Software (freedman)
  Re: Utility for finding absolute path of file? -- abs_path/realpath shell script 
("Brian Dellert")

----------------------------------------------------------------------------

From: [EMAIL PROTECTED]
Crossposted-To: alt.os.linux
Subject: Re: Looking for Math Software
Date: Mon, 29 Jan 2001 02:13:04 GMT

Just to let you know, both Matlab and Maple are available for Linux.

In article <[EMAIL PROTECTED]>,
  John Gluck <[EMAIL PROTECTED]> wrote:
> Hi
>
> I am looking for math software to help me with studying.
>
> What I would like to be able to do is enter functions and see curves
> drawn in a window.
> Ideally, the package would allow me to compare various functions by
> drawing several in the same window.
>
> The package should work in X windows or with gnome or KDE.
>
> It doesn't need to be anything spectacular and professional like
Matlab.
> This is just to get a reasonable approximation and a graphical view of
> things.
>
> Please copy my e-mail as well as the group.
>
> TIA
>
> John
>
>


Sent via Deja.com
http://www.deja.com/

------------------------------

From: Michel Catudal <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: 28 Jan 2001 20:20:33 -0600

"Aaron R. Kulkis" a �crit :
> 
> Grant Edwards wrote:
> >
> > In article <[EMAIL PROTECTED]>, Aaron R. Kulkis wrote:
> >
> > >Most of the tamper-friendly voting systems are in Demoncrook-run counties.
> > >Why is that?
> >
> > Democtratic counties tend to be poorer?
> 
> Lame EXCUSE
> 
> You're telling me that even though scan-tron machines are prevelant
> in every single school in the country, they're suddenly prohibitively
> expensive when sold with voting software?
> 
> I don't buy it.
> 

Then you are an ignorant. 4% error is not important unless the difference
between the candidates is below that. When money is scarce in a county,
this is usually spent where it's needed the most, in the schools, police
and public works. The federal and states should pay for the voting system
not the poor local system.

> Especially not when a man CONVICTED of multiple felony counts of
> ballot-tampering for the benefit of Democrat candidates explained
> fully well that the whole strategy revolves around the tamperability
> of punch-card ballots.
> 

There is fraud across the board but most of it is done by the ones who
can afford it the most. What about those thousands of New Yorkers who
voted both in New York and Florida? A large portion of absentee ballots
were cast by republicans. If you remove all the illegal absentee ballots
Al Gore wins big even with the screw up in the largely democratic counties.

> You remember all the chads that kept getting swept up off the floor
> in Florida...NEVER allowed to accumulate, lest it become completely
> fucking obvious what was being done.
> 

Those chads should have been removed from the ballots in the first place.
If not punched there is no way in hell one of those chads can come off.
You obviously have never seen one of those ballots.


-- 
Tired of Microsoft's rebootive multitasking?
then it's time to upgrade to Linux.
http://www.netonecom.net/~bbcat
We have all kinds of links
and many SuSE 7.0 Linux RPM packages

------------------------------

From: Bob Simon <[EMAIL PROTECTED]>
Subject: Help: Command-Line Editing Issues
Date: Mon, 29 Jan 2001 02:23:56 GMT

I have RH 7 and am trying to start up with vi command-line editing.
Before making any changes, echo $SHELLOPTS shows the following:
braceexpand:hashall:histexpand:monitor:history:interactive-comments:emac
s

I edited .bash_profile and added "set -o vi" (without quotes).
After logging out and back in, echo $SHELLOPTS shows:
braceexpand:hashall:histexpand:monitor:interactive-comments:vi
As you can see, I lost history.  Why?

Then I added another line to .bash_profile: "set -o history".
Now echo $SHELLOPTS shows the following:
braceexpand:hashall:histexpand:monitor:history:interactive-comments:vi

This is what I expected.  However, my up-arrow key no longer
displays prior commands in my history file even though the
history command works as usual.  Why?  What am I doing wrong?

Finally, does RH 7.0 support searching command history like
esc-p operates in tcsh?

--
Please address private email replies to bsimon at ATT dot Net.


Sent via Deja.com
http://www.deja.com/

------------------------------

From: "WME" <[EMAIL PROTECTED]>
Subject: Kernel upgrade
Date: Mon, 29 Jan 2001 02:38:11 GMT

Hello,
I upgraded from 2.2.16 to 2.4.0 and was left with can't load module errors
or directory not found errors, so I tried to trick linux by renaming the
directory from /lib/modules/2.2.16 to /lib/modules/2.4.0, but it figured out
i did that and gave me a page worth of errors at startup. How can fix that?
Where can I get the appropriate files for that directory?

Thanks
PS. My name and address are completely bogus, so please post only.



------------------------------

From: Robert Lynch <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Subject: Re: HELP!  Can't ls or rm directory / logrotate
Date: Mon, 29 Jan 2001 02:44:10 GMT

Roppy wrote:
> 
> I've got me a directory:
> 
> drw-r-----    3 root     adm       5156864 Jan 29 00:47 news/
> 
> that (I presume) has so much stuff in it that it breaks ls
> and rm.  How do I get rid of it?
> 
> Maybe related to the whole this is logrotate.  This takes a
> long time to run, like 12+ hours, although I'm not sure it
> has managed to finish before it runs out of memory.  Just
> what is it doing?
> 
> I hope somebody can help...

I answered another post about 9 Jan., about someone having this
problem with the junkbuster proxy.  I said that it also happened
to me, that I had a real struggle dumping the directory, but
unfortunately couldn't remember how I did it exactly.  I know
what you me about this breaking rm and ls.

Somebody posted this possiblity:
====
My favorite method of deleting all entries in a directory (when
the
number of entries is very large) is

tar cfv /dev/null /path/of/directory/to/empty --remove-files >
/dev/null

and then just rmdir the directory if required....
===
Note that I haven't tried this myself, so I don't know if it
actually works.

HTH. Bob L. 
-- 
Robert Lynch-Berkeley CA [EMAIL PROTECTED]

------------------------------

From: "G Pollack" <[EMAIL PROTECTED]>
Subject: Re: Looking for Math Software
Crossposted-To: alt.os.linux
Date: Mon, 29 Jan 2001 02:45:29 GMT

In article <952jjd$ovf$[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote:

> Just to let you know, both Matlab and Maple are available for Linux.
> 
So are Scilab and Octave, and they're both free.

------------------------------

From: "Aaron R. Kulkis" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: Sun, 28 Jan 2001 21:46:50 -0500

Jim Richardson wrote:
> 
> On Sun, 28 Jan 2001 15:49:07 -0500,
>  Aaron R. Kulkis, in the persona of <[EMAIL PROTECTED]>,
>  brought forth the following words...:
> 
> >Jim Richardson wrote:
> >>
> >> On Fri, 26 Jan 2001 19:10:20 -0500,
> >>  Aaron R. Kulkis, in the persona of <[EMAIL PROTECTED]>,
> >>  brought forth the following words...:
> >>
> 
> <snip>
> 
> >> >> The US is a republic not a democracy. Kindly read the Federalist Papers
> >> >> for the rationale behind not trusting the populace. It has a government
> >> >> of laws, and the laws in the state of Florida were fairly clear, and
> >> >> the polling stations had signs giving instructions that voters should
> >> >> make sure that their ballots were punched through and to remove hanging
> >> >> chads. And if they double-punched, they could ask for new ballot papers.
> >> >>
> >> >> Maybe there's a good reason for literacy tests after all.
> >> >
> >> >Personally, I think that EVERYONE in America should have to apply for
> >> >citizenship, just like immigrants.
> >> >
> >> >How many of the "government owes me a paycheck for my mere existance"
> >> >ignorami would be prevented from voting until they demonstrated an
> >> >understanding of our history and Constitution in a Citizenship application.
> >> >
> >> >
> >> >Odds are, the Demoncrooks would quit pandering to the lazy welfare
> >> >crowd....as these idiots wouldn't EVER pass the requirements of
> >> >citizenship if they weren't granted them by an unfortunate accident
> >> >of birth.
> >> >
> >>
> >> I'd sure like to see high schools requiring passing the citizenship test as
> >> part of graduation... But make the teachers take it too.
> >
> >No need...as long as the teachers are prevented from voting until they
> >do pass a citizenship test.
> >
> 
> they still fill the heads of students with mush. Maybe if they knew more,
> they'd know better...


I don't care...as long as shit-heads are prevented from voting, I really
don't care how many are produced.

However...typical market forces would force even teachers to learn the Constitution.


> 
> --
> Jim Richardson
>         Anarchist, pagan and proud of it
> WWW.eskimo.com/~warlock
>         Linux, because life's too short for a buggy OS.


-- 
Aaron R. Kulkis
Unix Systems Engineer
DNRC Minister of all I survey
ICQ # 3056642


H: "Having found not one single carbon monoxide leak on the entire
    premises, it is my belief, and Willard concurs, that the reason
    you folks feel listless and disoriented is simply because
    you are lazy, stupid people"

I: Loren Petrich's 2-week stubborn refusal to respond to the
   challenge to describe even one philosophical difference
   between himself and the communists demonstrates that, in fact,
   Loren Petrich is a COMMUNIST ***hole

J: Other knee_jerk reactionaries: billh, david casey, redc1c4,
   The retarded sisters: Raunchy (rauni) and Anencephielle (Enielle),
   also known as old hags who've hit the wall....

A:  The wise man is mocked by fools.

B: Jet Silverman plays the fool and spews out nonsense as a
   method of sidetracking discussions which are headed in a
   direction that she doesn't like.
 
C: Jet Silverman claims to have killfiled me.

D: Jet Silverman now follows me from newgroup to newsgroup
   ...despite (C) above.

E: Jet is not worthy of the time to compose a response until
   her behavior improves.

F: Unit_4's "Kook hunt" reminds me of "Jimmy Baker's" harangues against
   adultery while concurrently committing adultery with Tammy Hahn.

G:  Knackos...you're a retard.

------------------------------

From: [EMAIL PROTECTED] (Hal Burgiss)
Crossposted-To: linux.redhat
Subject: Re: bash2 on Redhat6.2
Reply-To: Hal Burgiss <[EMAIL PROTECTED]>
Date: 28 Jan 2001 22:01:27 -0500

On Mon, 29 Jan 2001 01:25:16 GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
>
>I thought when the root shell is broken it's VERY bad. (same with the
>shell system scripts use) I'm just worried about compatibility of the
>system scripts with the latest bash

Like I said, I used bash2 as my default shell with 6.2 from the time it
came out until 7.0. I never had a problem. Maybe there is something,
somewhere that is incompatible, but I never hit if there is.

-- 
Hal B
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
--

------------------------------

From: [EMAIL PROTECTED]
Subject: increasing open file limit
Date: Mon, 29 Jan 2001 02:56:09 GMT

We are working with Linux and have hit a snag. We are performing some
tests and require our application to open a few thousand files at a
time. (We are looking to open approx. 4096.) By inspecting ulimit we
have found that the hard-limit seems to be 1024 file descriptors per
user:

core file size (blocks)  1000000
data seg size (kbytes)   unlimited
file size (blocks)       unlimited
max memory size (kbytes) unlimited
stack size (kbytes)      8192
cpu time (seconds)       unlimited
max user processes       256
pipe size (512 bytes)    8
open files               1024
virtual memory (kbytes)  2105343

The limit specified by /usr/src/linux/include/linux/limits.h per process
is:

#define OPEN_MAX         256    /* # open files a process may have */

We need to increase this limit from 256 per process to 4096 (or even
higher) for testing purposes. How can this be done? I assume I can do a
kernel recompile, but I would rather just flip a switch somewhere in a
configuration file, /proc, or something similar if possible.

Regards, Dustin

---
Dustin Puryear


Sent via Deja.com
http://www.deja.com/

------------------------------

From: "Aaron R. Kulkis" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: Sun, 28 Jan 2001 22:24:56 -0500

Michel Catudal wrote:
> 
> "Aaron R. Kulkis" a �crit :
> >
> > Grant Edwards wrote:
> > >
> > > In article <[EMAIL PROTECTED]>, Aaron R. Kulkis wrote:
> > >
> > > >Most of the tamper-friendly voting systems are in Demoncrook-run counties.
> > > >Why is that?
> > >
> > > Democtratic counties tend to be poorer?
> >
> > Lame EXCUSE
> >
> > You're telling me that even though scan-tron machines are prevelant
> > in every single school in the country, they're suddenly prohibitively
> > expensive when sold with voting software?
> >
> > I don't buy it.
> >
> 
> Then you are an ignorant. 4% error is not important unless the difference

What part of "1 part in 1,000,000 accuracy is required for ballot machine 
certification"
do you not understand?



> between the candidates is below that. When money is scarce in a county,
> this is usually spent where it's needed the most, in the schools, police
> and public works. The federal and states should pay for the voting system
> not the poor local system.
      ^^^^^^^^^^^^^^^^^^^^^^

Another LAME EXCUSE RED HERRING


Give me a fucking break.  For the price of one deputy sherrif's salary, you
can purchase DOZENS of Scantron (hand-MARKED, not punched) machines.

By the way, these ballot-counting machines cost no more than punch-card
tabulators...AND scantron ballots are cheaper to produce than punched cards.

This has NOTHING to do with money, and EVERYTHING to do with deliberately
selecting systems which make vote-tampering easy.

By the way....since when is West Palm Beach a "poor" county?







> 
> > Especially not when a man CONVICTED of multiple felony counts of
> > ballot-tampering for the benefit of Democrat candidates explained
> > fully well that the whole strategy revolves around the tamperability
> > of punch-card ballots.
> >
> 
> There is fraud across the board but most of it is done by the ones who
> can afford it the most. What about those thousands of New Yorkers who
> voted both in New York and Florida? A large portion of absentee ballots
> were cast by republicans. If you remove all the illegal absentee ballots
> Al Gore wins big even with the screw up in the largely democratic counties.
> 
> > You remember all the chads that kept getting swept up off the floor
> > in Florida...NEVER allowed to accumulate, lest it become completely
> > fucking obvious what was being done.
> >
> 
> Those chads should have been removed from the ballots in the first place.
> If not punched there is no way in hell one of those chads can come off.
> You obviously have never seen one of those ballots.
> 
> --
> Tired of Microsoft's rebootive multitasking?
> then it's time to upgrade to Linux.
> http://www.netonecom.net/~bbcat
> We have all kinds of links
> and many SuSE 7.0 Linux RPM packages


-- 
Aaron R. Kulkis
Unix Systems Engineer
DNRC Minister of all I survey
ICQ # 3056642


H: "Having found not one single carbon monoxide leak on the entire
    premises, it is my belief, and Willard concurs, that the reason
    you folks feel listless and disoriented is simply because
    you are lazy, stupid people"

I: Loren Petrich's 2-week stubborn refusal to respond to the
   challenge to describe even one philosophical difference
   between himself and the communists demonstrates that, in fact,
   Loren Petrich is a COMMUNIST ***hole

J: Other knee_jerk reactionaries: billh, david casey, redc1c4,
   The retarded sisters: Raunchy (rauni) and Anencephielle (Enielle),
   also known as old hags who've hit the wall....

A:  The wise man is mocked by fools.

B: Jet Silverman plays the fool and spews out nonsense as a
   method of sidetracking discussions which are headed in a
   direction that she doesn't like.
 
C: Jet Silverman claims to have killfiled me.

D: Jet Silverman now follows me from newgroup to newsgroup
   ...despite (C) above.

E: Jet is not worthy of the time to compose a response until
   her behavior improves.

F: Unit_4's "Kook hunt" reminds me of "Jimmy Baker's" harangues against
   adultery while concurrently committing adultery with Tammy Hahn.

G:  Knackos...you're a retard.

------------------------------

From: schlomo <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.hardware,chi.forsale,comp.sys.laptops
Subject: FA:IBM ThinkPad 365XD p133/24mb/1gb/cdrom/Linux +MORE!!!!!!!!!
Date: Mon, 29 Jan 2001 03:19:34 GMT

 http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1209819290

IBM ThinkPad 365XD Linux ............. [ThinkPenguine]
133MHZ CPU
11" Display
24MB Ram
1.0GB HD
Internal CD-ROM
External Floppy (IBM p/n 10h3980)
AC Adapter (IBM p/n 85G6709)
56K PCMCIA Fax/Modem
Two button mouse
External 1.0GB Sparq Drive including
removable cartridge w/ installed Linux driver
Linux Slackware 3.6 original 4 disc set included
Pre-installed software including Netscape 4.74,
Corel Wordperfect 8, and more...


Sent via Deja.com
http://www.deja.com/

------------------------------

From: "Aaron R. Kulkis" <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.advocacy
Subject: Re: MS to Enforce Registration - or Else
Date: Sun, 28 Jan 2001 22:29:04 -0500

Michel Catudal wrote:
> 
> "Aaron R. Kulkis" a �crit :
> >
> > Grant Edwards wrote:
> > >
> > > In article <[EMAIL PROTECTED]>, Aaron R. Kulkis wrote:
> > >
> > > >Most of the tamper-friendly voting systems are in Demoncrook-run counties.
> > > >Why is that?
> > >
> > > Democtratic counties tend to be poorer?
> >
> > Lame EXCUSE
> >
> > You're telling me that even though scan-tron machines are prevelant
> > in every single school in the country, they're suddenly prohibitively
> > expensive when sold with voting software?
> >
> > I don't buy it.
> >
> 
> Then you are an ignorant. 4% error is not important unless the difference
> between the candidates is below that. When money is scarce in a county,
> this is usually spent where it's needed the most, in the schools, police
> and public works. The federal and states should pay for the voting system
> not the poor local system.
> 
> > Especially not when a man CONVICTED of multiple felony counts of
> > ballot-tampering for the benefit of Democrat candidates explained
> > fully well that the whole strategy revolves around the tamperability
> > of punch-card ballots.
> >
> 
> There is fraud across the board but most of it is done by the ones who
> can afford it the most. What about those thousands of New Yorkers who
> voted both in New York and Florida? A large portion of absentee ballots
> were cast by republicans. If you remove all the illegal absentee ballots
> Al Gore wins big even with the screw up in the largely democratic counties.
> 
> > You remember all the chads that kept getting swept up off the floor
> > in Florida...NEVER allowed to accumulate, lest it become completely
> > fucking obvious what was being done.
> >
> 
> Those chads should have been removed from the ballots in the first place.

Translation:

Democrats are toooooooo fucking stupid to follow the directions posted
in the ballot booth AND in BIG HUGE FUCKING LETTERS at the polling place.

Probably because Democrats habitually ignore rules and laws.

Well....it's come back to haunt you.

Deal with it.

[By the way, I'm a Libertarian, not a Republican]


> If not punched there is no way in hell one of those chads can come off.

Really!?!?!?  A lawyer convicted of tampering in SEVEN different elections
for the benefit of Demoncrook candidates says otherwise.


> You obviously have never seen one of those ballots.

Guess again.  I voted on them when I was in college.


> 
> --
> Tired of Microsoft's rebootive multitasking?
> then it's time to upgrade to Linux.
> http://www.netonecom.net/~bbcat
> We have all kinds of links
> and many SuSE 7.0 Linux RPM packages


-- 
Aaron R. Kulkis
Unix Systems Engineer
DNRC Minister of all I survey
ICQ # 3056642


H: "Having found not one single carbon monoxide leak on the entire
    premises, it is my belief, and Willard concurs, that the reason
    you folks feel listless and disoriented is simply because
    you are lazy, stupid people"

I: Loren Petrich's 2-week stubborn refusal to respond to the
   challenge to describe even one philosophical difference
   between himself and the communists demonstrates that, in fact,
   Loren Petrich is a COMMUNIST ***hole

J: Other knee_jerk reactionaries: billh, david casey, redc1c4,
   The retarded sisters: Raunchy (rauni) and Anencephielle (Enielle),
   also known as old hags who've hit the wall....

A:  The wise man is mocked by fools.

B: Jet Silverman plays the fool and spews out nonsense as a
   method of sidetracking discussions which are headed in a
   direction that she doesn't like.
 
C: Jet Silverman claims to have killfiled me.

D: Jet Silverman now follows me from newgroup to newsgroup
   ...despite (C) above.

E: Jet is not worthy of the time to compose a response until
   her behavior improves.

F: Unit_4's "Kook hunt" reminds me of "Jimmy Baker's" harangues against
   adultery while concurrently committing adultery with Tammy Hahn.

G:  Knackos...you're a retard.

------------------------------

From: [EMAIL PROTECTED] (Gregory Spath)
Subject: Re: why can't i find any good  GUI file managers?
Date: Mon, 29 Jan 2001 03:44:30 -0000
Reply-To: [EMAIL PROTECTED]

I realize I am jumping in late here, but take a look at rox:
        http://rox.sourceforge.net/

Very light, fast, elegant filemanager.

To date I've used gmc, kfm, konqueror, dfm...and rox is the best (but lacking
some of the nice features in kfm and dfm still).

-- Greg



In <kEMc6.19524$[EMAIL PROTECTED]>, jim cason ([EMAIL PROTECTED]) 
wrote:
>I have been playing with Linux since the early 90's, so I am not knocking it
>at all. I make my living from M$ technology, but enjoy seeing Linux flurish
>and would love to see it make some real competition for M$. However, why is
>this the case? Windows Explorer will allow you to copy these large
>directories either by GUI Explorer or by Command Prompt. It seems to me that
>if Linux is going to be serious in the corporate space (especially at the
>desktop), then it has got to improve in these areas, small as they may seem.
>Thoughts?
>
>
><[EMAIL PROTECTED]> wrote in message
>news:[EMAIL PROTECTED]...
>> Pawel Golik wrote:
>> >
>> > dom wrote:
>> >
>> > > I use XWC (XWIN Commander) Very simple interface, stable, fast, looks
>alot
>> > >  like that ole windows explorer (please forgive me :-)
>> >
>> > Be careful about XWC - I lost data twice due to it!! It seems to have a
>> > bug that drops some files if you copy large (thousands of files)
>> > directories. It doesn't give any warning, just when you look at the
>> > supposedly copied directory you notice that some files are missing.
>> > Happened to me twice on two different systems (only with directories
>> > containing really lots of files, like linux source tree). No problems if
>> > you copy individual files, but you can do that faster winth command
>line.
>> >                 Pawel
>>
>> xfm does this too. The safest way I know to copy large file directories
>> is with the shell and the cp command.
>>
>> jamess
>> --
>> "On the side of the software box, in the 'System Requirements' section,
>> it said 'Requires Windows 95 or better'. So I installed Linux."
>>
>> -Anonymous
>
>


-- 
Gregory Spath              
[EMAIL PROTECTED]   http://freefall.homeip.net/
SCHeckler on IRC ----------> http://freefall.homeip.net/javairc/
Team YBR ------------------> http://www.yellowbreechesracing.org/

------------------------------

From: [EMAIL PROTECTED] (freedman)
Crossposted-To: alt.os.linux
Subject: Re: Looking for Math Software
Date: 29 Jan 2001 04:00:23 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 28 Jan 2001 23:05:49 GMT, John Gluck <[EMAIL PROTECTED]> wrote:
>Hi
>
>I am looking for math software to help me with studying.
>
>What I would like to be able to do is enter functions and see curves
>drawn in a window.
>Ideally, the package would allow me to compare various functions by
>drawing several in the same window.
>
>The package should work in X windows or with gnome or KDE.
>
>It doesn't need to be anything spectacular and professional like Matlab.
>This is just to get a reasonable approximation and a graphical view of
>things.
>
>Please copy my e-mail as well as the group.
>
>TIA
>
>John
>
Try gnuplot if you're primarily interested in plotting functions and surfaces.

-- 
Dick Freedman

------------------------------

From: "Brian Dellert" <[EMAIL PROTECTED]>
Subject: Re: Utility for finding absolute path of file? -- abs_path/realpath shell 
script
Date: Mon, 29 Jan 2001 04:03:36 GMT

In article <9529p4$he9$[EMAIL PROTECTED]>, "Harlan Grove" <[EMAIL PROTECTED]>
wrote:

> Yes - don't use sed. I didn't test this case. The problem is that the
> first and second '/../' overlap, and sed can't back up in the replaced
> string. Since I'm much more skilled in awk than perl, I'd change to

[contents deleted]

Thanks for the update. I've thrown some more handling of special cases
into your code and moved some of the ksh logic to awk so the script works
with the Bourne shell. FWIW, I've included my modifications below.

If you spot anything I screwed up, let me know.

--begin--
#!/bin/sh

for path in "$@"
do
  echo "$path"
done | 

awk '{ 

  if( $0 !~ /^\// )
    $0 = pwd "/" $0

  # Replace multiple slashes with a single slash.
  gsub( /\/\/+/, "/" )

  # Replace /./ with /
  gsub( /\/\.\//, "/" )

  # Remove /. from EOS
  gsub( /\/\.$/, "" )

  # Remove any trailing slash. 
  gsub( /\/$/, "" )

  # If I wind up with an empty string, I must have started with "/". 
  # Print / for the path and continue to the next line of input.
  if( $0 == "" ) {
    print "/"
    next
  }

  # Remove occurences of /../ by deleting the preceding parent
  # directory from the path.
  while ( /\/[^/]+\/\.\.\// ) gsub(/\/[^/]+\/\.\.\//, "/")

  # Remove any trailing /.. by deleting the preceding parent
  # directory from the path.
  gsub( /\/[^/]+\/\.\./, "/" )

  #
  # There could be more occurences of .. than parent directories.
  #
  # For example:
  #   /home/brian/../../../../../../../home
  #
  # After collapsing occurences of .. in the while loop above, I
  # am still left with:
  #   /../home
  #
  # Remove any leading /../
  #
  gsub( /^\/\.\.\//, "/" )

  # In another example, I might start with:
  #   /home/brian/../../../../../../..
  #
  # After the while loop, I would be left with:
  #   /..
  #
  # /.. is equivalent to /
  #

  if( $0 == "/.." )
    $0 = "/"

  print 
}
' pwd="`pwd`"
unset path


---end---

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.misc.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Misc Digest
******************************

Reply via email to