Bob Armstrong wrote:
Actually, in VMS (as well as in RSX), ;-1 means the oldest version
available.
I think you only have ;-1 and ;0 which are special.
Can't speak for RSX's problems, but for VMS none of this is true.
Wow. I apologize. I thought I had that under control... :-)
I wonder if VMS have changed along the way, or if it has always been like that...?
In RSX it is as I described, however...
.dir login.cmd;*
Directory DU4:[BQT]
23-SEP-09 10:23
LOGIN.CMD;48 3. 26-FEB-09 10:27
LOGIN.CMD;47 3. 16-FEB-09 11:37
LOGIN.CMD;46 3. 13-DEC-08 06:22
Total of 9./15. blocks in 3. files
.dir login.cmd;0
Directory DU4:[BQT]
23-SEP-09 10:23
LOGIN.CMD;48 3. 26-FEB-09 10:27
Total of 3./5. blocks in 1. file
.dir login.cmd;-0
Directory DU4:[BQT]
23-SEP-09 10:23
LOGIN.CMD;48 3. 26-FEB-09 10:27
Total of 3./5. blocks in 1. file
.dir login.cmd;-1
Directory DU4:[BQT]
23-SEP-09 10:23
LOGIN.CMD;46 3. 13-DEC-08 06:22
Total of 3./5. blocks in 1. file
.
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
Actually, in VMS (as well as in RSX), ;-1 means the oldest version
available.
I think you only have ;-1 and ;0 which are special.
Can't speak for RSX's problems, but for VMS none of this is true.
-----
$ create foo.txt
one
^Z
$ create foo.txt
two
^Z
$ create foo.txt
three
^Z
$ dir foo.txt
Directory USERS:[BOB]
FOO.TXT;3 1/80 22-SEP-2009 18:52:28.94 [BOB]
(RWED,RWED,RWED,RE)
FOO.TXT;2 1/80 22-SEP-2009 18:52:26.34 [BOB]
(RWED,RWED,RWED,RE)
FOO.TXT;1 1/80 22-SEP-2009 18:52:21.09 [BOB]
(RWED,RWED,RWED,RE)
Total of 3 files, 3/240 blocks.
$ type foo.txt;1
one
$ type foo.txt;0
three
$ type foo.txt
three
$ type foo.txt;
three
$ type foo.txt;-1
two
$ type foo.txt;-2
one
$ type foo.txt;-3
%TYPE-W-SEARCHFAIL, error searching for USERS:[BOB]FOO.TXT;-3
-RMS-E-FNF, file not found
$ type foo.txt;-0
one
-------
Give it a try for yourself (there are lots of VMS systems on HECnet!).
Bob
gerry77 at mail.com wrote:
On Tue, 22 Sep 2009 16:07:03 -0700, you wrote:
That's legal. The longer story is that version numbers start with 1, and
";0" is shorthand for the most recent version. "FOO.TXT;" is just shorthand
for "FOO.TXT;0".
It's also legal to say "FOO.TXT;-1" meaning the previous version (i.e.
most recent -1), as is ";-2", ";-3", etc.
It's legal ";-0" too, meaning the oldest version available :)
Actually, in VMS (as well as in RSX), ;-1 means the oldest version available.
Around here is where VMS differs from TOPS-20.
;0 also have different meanings on TOPS-20 compared to VMS.
On VMS, ;0 means the most recent version if you open a file for reading. But if you try to create a file, ;0 means one higher than what exist right now.
In TOPS-20, unless my memory fails me, ;0 will overwrite the most recent version that do exist.
The ;-0, ;-1, ;-2, ;-3 and so on to refer to older versions is how I think TOPS-20 did it. I don't remember that there is a way of specifying something like that in VMS. I think you only have ;-1 and ;0 which are special. But I might be remembering wrong from playing too much with RSX. :-)
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
It's legal ";-0" too, meaning the oldest version available :)
One is starting to hope that PHP gets _some_ of the filespec stuff
right. :)
But, while I'm willing to believe (at least until I have time to study
it a bit more) that it's PHP which looks to see if it owns the requested
extension, I'm reluctant to believe that Apache hands over full pathname
processing. That should reduce the size of the problem space a little.
I wonder if case matters...
The rule might better read:
RewriteRule (.*\.[Pp][Hh][Pp])([;.][0-9-]*)(.*) $1$3
De
On Tue, 22 Sep 2009 16:07:03 -0700, you wrote:
That's legal. The longer story is that version numbers start with 1, and
";0" is shorthand for the most recent version. "FOO.TXT;" is just shorthand
for "FOO.TXT;0".
It's also legal to say "FOO.TXT;-1" meaning the previous version (i.e.
most recent -1), as is ";-2", ";-3", etc.
It's legal ";-0" too, meaning the oldest version available :)
G.
As in "FOO.TXT;" ?
That certainly *used* to be a valid filename, back in V4/V5 days anyway,
That's legal. The longer story is that version numbers start with 1, and
";0" is shorthand for the most recent version. "FOO.TXT;" is just shorthand
for "FOO.TXT;0".
It's also legal to say "FOO.TXT;-1" meaning the previous version (i.e.
most recent -1), as is ";-2", ";-3", etc.
And, FWIW, it's also legal to use angle brackets in VMS path
specifications (e.g. "DISK:<DIR.DIR.DIR>FOO.TXT"). Both the use of angle
brackets and using a second "." in place of the semicolon (e.g. "FOO.TXT.1")
were put into VMS long ago as an aid to ex-TOPS20 users.
Bob
From: Sampsa Laine <sampsa at mac.com>
Any other separator legal for version numbers? Am I missing anything
else?
Surely I'm showing my ignorance of both VMS and Apache, but does your
regex handle a version # with no digits at all? As in "FOO.TXT;" ?
That certainly *used* to be a valid filename, back in V4/V5 days anyway,
just want to make sure it's covered.
John Wilson
D Bit
Just in any case anyone is interested in what's actually in that directory, here's a listing:
RHESUSSYS$ dir apache$root:[php.scripts]
Directory APACHE$SPECIFIC:[PHP.SCRIPTS]
SYSINFO.DIR;1 0.50KB 22-SEP-2009 21:21:35.44
Total of 1 file, 0.50KB
Directory APACHE$COMMON:[PHP.SCRIPTS]
PHP_CALENDAR.PHP;1 1KB 27-JUL-2009 10:33:18.95
PHP_INFO.PHP;3 0.50KB 22-SEP-2009 19:19:48.26
PHP_INFO.PHP;2 0.50KB 22-SEP-2009 19:13:20.18
PHP_INFO.PHP;1 0.50KB 27-JUL-2009 10:33:19.11
PHP_ODBC.PHP;1 0.50KB 27-JUL-2009 10:33:19.44
PHP_OPENVMS.PHP;1 7KB 27-JUL-2009 10:33:19.62
PHP_RULES.PHP;1 0.50KB 27-JUL-2009 10:33:19.79
Total of 7 files, 10KB
Grand total of 2 directories, 8 files, 11KB
Also, how does one generate a file with version number -1?
Sampsa
On 22 Sep 2009, at 22:40, Sampsa Laine wrote:
Hmm...The rule seems to somehow work for .1:
http://rhesus.sampsa.com/php/php_rules.php.1http://rhesus.sampsa.com/php/php_rules.php.0http://rhesus.sampsa.com/php/php_rules.php.-1
As well as -1:
http://rhesus.sampsa.com/php/php_rules.php;-1
And ;0 is covered by the rewrite anyhow:
http://rhesus.sampsa.com/php/php_rules.php;0
Any other separator legal for version numbers? Am I missing anything else?
Sampsa
On 22 Sep 2009, at 22:36, Johnny Billquist wrote:
Sampsa Laine wrote:
Just to clarify, are we now talking about the flaw in CSWS_PHP or just general syntax for VMS filenames? Or both?
Both. Since we're talking about legal filenames in VMS, it means that CSWS_PHP must understand them as well, or else they are just easy ways of getting around your rewrite rules.
Johnny
Sampsa
On 22 Sep 2009, at 22:25, Mark Abene wrote:
For the record, both [] and <> will work on TOPS-20 for directory names.
Brackets [] are naturally preferable because they don't require a shift,
which is much more comfortable when typing quickly.
Johnny Billquist wrote:
Mark Wickens wrote:
Hope you guys don't mind but I mentioned this to the Hoff and he pointed
out that a period '.' can be used validly instead of a ';' as a
separator between the version number and the filename.
Indeed. You can also use <> instead of [] as directory brackets.
All because of confusion within DEC at the time when they tried to
decide on a standard for all DEC OSes.
(Because of this confusion, TOPS-20 changed it's syntax to be <> and .,
but then VMS reverted the decision, but in the end they had to allow
both variants, to keep something like compatibility between VMS and
TOPS-20. RSX also allows the same.)
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
Hmm...The rule seems to somehow work for .1:
http://rhesus.sampsa.com/php/php_rules.php.1http://rhesus.sampsa.com/php/php_rules.php.0http://rhesus.sampsa.com/php/php_rules.php.-1
As well as -1:
http://rhesus.sampsa.com/php/php_rules.php;-1
And ;0 is covered by the rewrite anyhow:
http://rhesus.sampsa.com/php/php_rules.php;0
Any other separator legal for version numbers? Am I missing anything else?
Sampsa
On 22 Sep 2009, at 22:36, Johnny Billquist wrote:
Sampsa Laine wrote:
Just to clarify, are we now talking about the flaw in CSWS_PHP or just general syntax for VMS filenames? Or both?
Both. Since we're talking about legal filenames in VMS, it means that CSWS_PHP must understand them as well, or else they are just easy ways of getting around your rewrite rules.
Johnny
Sampsa
On 22 Sep 2009, at 22:25, Mark Abene wrote:
For the record, both [] and <> will work on TOPS-20 for directory names.
Brackets [] are naturally preferable because they don't require a shift,
which is much more comfortable when typing quickly.
Johnny Billquist wrote:
Mark Wickens wrote:
Hope you guys don't mind but I mentioned this to the Hoff and he pointed
out that a period '.' can be used validly instead of a ';' as a
separator between the version number and the filename.
Indeed. You can also use <> instead of [] as directory brackets.
All because of confusion within DEC at the time when they tried to
decide on a standard for all DEC OSes.
(Because of this confusion, TOPS-20 changed it's syntax to be <> and .,
but then VMS reverted the decision, but in the end they had to allow
both variants, to keep something like compatibility between VMS and
TOPS-20. RSX also allows the same.)
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol
Oh god, that brings back some bad memories, "Where the **** is that squiggly thing on this stupid Finnish keyboard? I am never using these stupid umlauts when I grow up, damn it" = me at around 12 years of age.
And here we are, 20 years later, I can barely string together a coherent written sentence in my native tongue. I blame ASCII.
Sampsa
On 22 Sep 2009, at 22:34, Johnny Billquist wrote:
Paul Koning wrote:
Excerpt of message (sent 22 September 2009) by Johnny Billquist:
Mark Wickens wrote:
Hope you guys don't mind but I mentioned this to the Hoff and he pointed
out that a period '.' can be used validly instead of a ';' as a
separator between the version number and the filename.
Indeed. You can also use <> instead of [] as directory brackets.
All because of confusion within DEC at the time when they tried to decide on a standard for all DEC OSes.
The reason for avoiding [] is that those are "national characters" --
they might be letters with umlauts or stuff like that, in the ancient
days of non-English 7-bit character sets. Latin-1 obsoleted that
notion. But until that happened, there was an internal DEC directive
to avoid those code points... []{}\_|# and perhaps even $...
A few people paid attention, most (like RSTS) just ignored it.
Indeed. But after a while I got used to reading DB0: 120,114 :-)
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email: bqt at softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol