12-06-2001
What do you mean by standards?
Do you want something that portable to most Unix systems? If so, check POSIX, and write your shell scripts in sh...
9 More Discussions You Might Find Interesting
1. UNIX IEEE Std 1003.1-2001 (POSIX.1)
Click HERE to learn about The Single UNIX Specification, Version 3
Or:
Here is another link to the UNIX IEEE Standard, an Open Group Technical Standard, Issue 7
Keywords
UNIX® is a registered trademark of The Open Group (0 Replies)
Discussion started by: Neo
0 Replies
2. Programming
I'm new to UNIX programming. I'm used to starting my program's versions at 1.0, but I look at all the UNIX programs out there and see things like 0.000.1 or 3.3.000 and I'm wondering what these things really mean. Do people just type anything they feel in there? Are things in pre-release... (6 Replies)
Discussion started by: hirni
6 Replies
3. Shell Programming and Scripting
Would anyone have details of pre-existing Unix shell scripting standards. I've been asked to prepare a document outlining standards when writing korn shell scripts & don't really know where to start. Thanks. (6 Replies)
Discussion started by: janmolby
6 Replies
4. UNIX for Dummies Questions & Answers
Hi!
Suppose I am at a location xyz:/abc1/abc2/abc3
Is it possible to move to another location xyz:/mnl1/mnl2/mnl3
by some coding within a script? (5 Replies)
Discussion started by: udiptya
5 Replies
5. Shell Programming and Scripting
Hi,
Can anyone point me to Secure coding standards for shell programming guides, links etc etc...
Thanks and regards,
Vamsi K Surampalli. (2 Replies)
Discussion started by: vamsisurampalli
2 Replies
6. Solaris
I'm just starting a 'serious' coding in UNIX, so what I need is to run a C code on UNIX, What do I have to install (app) prior to coding/running the code and how do I compile that code?
can I write my c code in UNIX or I need to have a visual studio for this? (7 Replies)
Discussion started by: Peevish
7 Replies
7. Shell Programming and Scripting
Unix script coding help?
i am trying to write a code that will display following menu to user:
(A) Add
(B) Subtract
(C) Multiply
(D) Divide
(E) Modulus
(F) Exponentiation
(G) Exit
Then ask user for choice (A-F). After taking users choice ask user for two numbers and
perform... (3 Replies)
Discussion started by: renegade755
3 Replies
8. Homework & Coursework Questions
i am trying to write a script code in unix that will:
1. The problem statement, all variables and given/known data:
display following menu to user:
(A) Add
(B) Subtract
(C) Multiply
(D) Divide
(E) Modulus
(F) Exponentiation
(G) Exit
Then ask user for choice (A-F). After taking... (5 Replies)
Discussion started by: renegade755
5 Replies
9. What is on Your Mind?
Hi,
as I mentioned in this thread(https://www.unix.com/shell-programming-and-scripting/280737-awk-function-return-permutations-n-items-out-m.html), a helpful coding style may improve overall value and support for people who come here and want to learn things the participants from unix.com have... (2 Replies)
Discussion started by: stomp
2 Replies
pathchk(1) General Commands Manual pathchk(1)
NAME
pathchk - check path names
SYNOPSIS
pathname...
DESCRIPTION
The command checks that one or more path names are valid and portable. By default, the command checks each component of each path name
specified by the pathname parameter based on the underlying file system. An error message is written for each path name operand that:
o is longer than that allowed by the system.
o contains any component longer than that allowed by the system.
o contains any component in a directory that is not searchable.
o contains any character in any component that is not valid in its containing directory.
It is not considered an error if one or more components of a path name do not exist, as long as a file matching the path name specified by
the pathname parameter could be created that does not violate any of the checks above.
More extensive portability checks are performed when the flag is specified.
Options
The command supports the following option:
Performs path name checks based on
POSIX portability standards instead of the underlying file system. An error message is written for each path name that:
o is longer than bytes.
o contains any component longer than bytes.
o contains any character in any component that is not in the portable file name character set.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
RETURN VALUE
Upon successful completion, returns zero; otherwise it returns nonzero to indicate an error.
EXAMPLES
To check the validity and portability of the
path name on your system, use:
To check the validity and portability of the
path name for POSIX standards, use:
STANDARDS CONFORMANCE
pathchk(1)