SSI and variable expansion with unary operators

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I had expected the expression below to print out "File index.htm exists" given that it does exist in same location as the page
that loads this ... but instead it tells me that it does not exist.

<!--#set var="filename" value="index.htm" -->
<!--#if expr='-F "%{filename}"' -->
	File <!--#echo var="filename" --> exists
<!--#else -->
	File <!--#echo var="filename" --> does not exist
<!--#endif -->

If I replace 
<!--#if expr='-F "${filename}"' -->
with
<!--#if expr='-F "index.htm"' -->
then it does find it.

I tried with %{filename} as well.

So - it appears that variables not expanded in this case or I am doing something wrong.
Any hints?

My real-world usage is more complicated because the var filename really is dynamically generated based on current date/time.


Paul Webster

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux