Sponsored Content
Full Discussion: How to use for and if?
Top Forums Shell Programming and Scripting How to use for and if? Post 302998759 by RudiC on Wednesday 7th of June 2017 12:10:01 AM
Old 06-07-2017
You've fallen into the same trap as in your other thread. Don Cragun pointed the syntax error out (amongst others). The logical one is making the -z test, inverting the desired behaviour.
Plus, on the second sight, you seem to want to evaluate some variables numerically, so -z or -n wouldn't be the correct test.
This User Gave Thanks to RudiC For This Post:
 
WebCommon.urlEncode(3kaya)				       Kaya module reference					WebCommon.urlEncode(3kaya)

NAME
WebCommon::urlEncode - URL encode a string SYNOPSIS
String urlEncode( String x ) ARGUMENTS
x The string to encode DESCRIPTION
URL encode a string. You should use this to encode reserved characters in URLs that you wish to be passed literally. // trying to pass "http://www.example.com" as a parameter url = "http://localhost/test.cgi?url="; url += urlEncode("http://www.example.com"); // url = http://localhost/test.cgi?url=http%3A%2F%2Fwww.example.com Note that in the example above, encoding the whole URL would be incorrect - that would create a relative URL beginning "http://". AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. RELATED
WebCommon.urlDecode(3kaya) Kaya October 2012 WebCommon.urlEncode(3kaya)
All times are GMT -4. The time now is 09:02 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy