Sponsored Content
Full Discussion: A little help please
Top Forums Shell Programming and Scripting A little help please Post 302145577 by porter on Wednesday 14th of November 2007 04:41:37 PM
Old 11-14-2007
$? is a variable that holds the return code of the last command.

Code:
echo $?

also

$$ is a variable that holds the current process id
$! is a variable that holds the pid of a process launched asynchronously
$0 holds the current script name
$1 ..... hold each argument from the command line
$@ holds all the command line arguments
 
form_variables(3FORM)													     form_variables(3FORM)

NAME
TYPE_ALNUM, TYPE_ALPHA, TYPE_ENUM, TYPE_INTEGER, TYPE_IPV4, TYPE_NUMERIC, TYPE_REGEXP - form system global variables SYNOPSIS
#include <form.h> FIELDTYPE * TYPE_ALNUM; FIELDTYPE * TYPE_ALPHA; FIELDTYPE * TYPE_ENUM; FIELDTYPE * TYPE_INTEGER; FIELDTYPE * TYPE_IPV4; FIELDTYPE * TYPE_NUMERIC; FIELDTYPE * TYPE_REGEXP; DESCRIPTION
These are building blocks for the form library, defining fields that can be created using set_fieldtype(3X). Each provides functions for field- and character-validation, according to the given datatype. TYPE_ALNUM This holds alphanumeric data. TYPE_ALPHA This holds alphabetic data. TYPE_ENUM This holds an enumerated type. TYPE_INTEGER This holds a decimal integer. TYPE_IPV4 This holds an IPv4 internet address, e.g., "127.0.0.1". TYPE_NUMERIC This holds a decimal number, with optional sign and decimal point. TYPE_REGEXP This holds a regular expression. PORTABILITY
The TYPE_IPV4 variable is an extension not provided by older implementations of the form library. SEE ALSO
form(3FORM). form_variables(3FORM)
All times are GMT -4. The time now is 10:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy