HP3000-L Archives

September 2000, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Danny A. van Delft" <[log in to unmask]>
Reply To:
Danny A. van Delft
Date:
Tue, 19 Sep 2000 15:14:06 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (32 lines)
On Tue, 19 Sep 2000 07:51:29 GMT, [log in to unmask] wrote:

...
>>
>- create a symbolic link to any other file on the file system in your
>current directory
>- create a file, <file>, using vi (or whatever) named something
>different in the current directory as well
>- run perl -e 'rename("<file>","<symlink>");'

While not a solution to your problem, ALL system calls should really
be checked for success. If you had done something like:

perl -e 'rename("<file>","<symlink>") or die $!;'
System call error at -e line 1.

you'd at least gotten an error indicating something had gone wrong,
i.s.o. silence (and seemingly succes).

...
>>
>The operation should accomplish nothing.  Doing the same on another
>system like AIX will trash the link and overwrite the symlink with the
>file.

The same operation with the "mv" command with the posix shell gives
the same result, failure. The problem lies with MPE/POSIX, not perl.
Guess it's time to place a call to HP.

HTH
Danny A. van Delft   [log in to unmask]

ATOM RSS1 RSS2