Tcl_CommandComplete(3TCL) Tcl Library Procedures Tcl_CommandComplete(3TCL)__________________________________________________________________________________________________________________________________________________NAME
Tcl_CommandComplete - Check for unmatched braces in a Tcl command
SYNOPSIS
#include <tcl.h>
int
Tcl_CommandComplete(cmd)
ARGUMENTS
CONST char *cmd (in) Command string to test for completeness.
_________________________________________________________________DESCRIPTION
Tcl_CommandComplete takes a Tcl command string as argument and determines whether it contains one or more complete commands (i.e. there are
no unclosed quotes, braces, brackets, or variable references). If the command string is complete then it returns 1; otherwise it returns
0.
KEYWORDS
complete command, partial command
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTcl |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tcl is available on http://opensolaris.org.
TclTcl_CommandComplete(3TCL)
Check Out this Related Man Page
Tcl_SourceRCFile(3TCL) Tcl Library Procedures Tcl_SourceRCFile(3TCL)__________________________________________________________________________________________________________________________________________________NAME
Tcl_SourceRCFile - source the Tcl rc file
SYNOPSIS
#include <tcl.h>
void
Tcl_SourceRCFile(interp)
ARGUMENTS
Tcl_Interp *interp (in) Tcl interpreter to source rc file into.
_________________________________________________________________DESCRIPTION
Tcl_SourceRCFile is used to source the Tcl rc file at startup. It is typically invoked by Tcl_Main or Tk_Main. The name of the file
sourced is obtained from the global variable tcl_rcFileName in the interpreter given by interp. If this variable is not defined, or if the
file it indicates cannot be found, no action is taken.
On the Macintosh, after sourcing the rc file, this function will additionally source the TEXT resource indicated by the global variable
tcl_rcRsrcName in interp.
KEYWORDS
application-specific initialization, main program, rc file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Availability | SUNWTcl |
+--------------------+-----------------+
|Interface Stability | Uncommitted |
+--------------------+-----------------+
NOTES
Source for Tcl is available on http://opensolaris.org.
Tcl 8.3 Tcl_SourceRCFile(3TCL)
I'm getting an else unmatched error on the script below..
For info : SYDB is the database name entered as a param on the command line.
#Check the DB name
HBDB=`sql $SYDB <<_END_ | grep '^|' | grep -v dbase | sed 's/|//g' | sed 's/ //g'
set autocommit on;
\p\g
set lockmode... (7 Replies)
For example
test.sh:
test="teststring"
cmd=$1
$cmd
For some reason I'm NOT seeing "teststring" when I type: ./test.sh "echo $test"
Any ideas on how to get around this?
I've tried commands like:
./test.sh "echo $($test)"
./test.sh "echo '$test'"
And many variations to no... (6 Replies)
Hi,
I'm unable to execute the below command completely ; it's not allowing me to type the complete command. It is allowing till "xargs" and i cannot even press enter after that.
I'm using Solaris. Let me know if anything needs to be added so as to execute the complete command. Appreciate... (12 Replies)