Status/Resolution/Reason: To Fix//BugVerified
Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)
Created: 03/09/2016
Components: CLI
Versions: 2016
Failure Type: Unspecified
Found In Build/Fixed In Build: Alpha_v12 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Mac All
Vote Count: 1
Problem Description:
A common trick with other languages is to write a shell script using #!/usr/bin/env that accepts the rest of the shell script as input and runs it using the specified language interpreter. This does not work with Raijin's CLI.
Steps to Reproduce:
Create test.sh containing this code, and make it executable:
#!/usr/bin/env cf.sh
<cfoutput>
Hello Shell Script!
</cfoutput>
Ensure cf.sh is on your path. Run the shell script:
./test.sh
Actual Result:
(! 823)-> ./test.sh
Usage:
cfcli.bat <absolute or relative path of cfm> <positional arguments and/or named arguments, if any> -outputdir=<output directory> -logdir=<log directory>
Example1: cfcli.bat C:\Project\hello.cfm
Example2: cfcli.bat C:\Project\hello.cfm foo
Example3: cfcli.bat C:\Project\hello.cfm name=bar
Example4: cfcli.bat C:\Project\hello.cfm foo name=bar
Example5: cfcli.bat C:\Project\hello.cfm -outputdir=C:\Project\classes
Example6: cfcli.bat C:\Project\hello.cfm -logdir=C:\Project\logs
Example7: cfcli.bat C:\Project\hello.cfm -outputdir=C:\Project\classes -logdir=C:\Project\logs
Example8: cfcli.bat C:\Project\hello.cfm foo name=bar -outputdir=C:\Project\classes -logdir=C:\Project\logs
Thu Aug 06 15:47:33
(sean)-(jobs:0)-(~/cfml)
Expected Result:
(! 823)-> ./test.sh
Hello Shell Script!
Thu Aug 06 15:47:33
(sean)-(jobs:0)-(~/cfml)
Any Workarounds:
None. You have to explicitly invoke the CLI with the path to a bare .cfm file.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4126651
External Customer Info:
External Company: Railo US
External Customer Name: Sean Corfield
External Customer Email: SEAN@CORFIELD.ORG
External Test Config:
Attachments:
Comments: