ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzalf_5.4.0.1/rzalfcasesense.htm

87 lines
4.8 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Case sensitivity" />
<meta name="abstract" content="If your application is sensitive to mixed case, move it into the /QOpenSys file system, or into a user-defined file system that has been created as case-sensitive." />
<meta name="description" content="If your application is sensitive to mixed case, move it into the /QOpenSys file system, or into a user-defined file system that has been created as case-sensitive." />
<meta name="DC.Relation" scheme="URI" content="rzalfcopying.htm" />
<meta name="DC.Relation" scheme="URI" content="../ifs/rzaaxfscmp.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2000, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzalfcasesense" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Case sensitivity</title>
</head>
<body id="rzalfcasesense"><a name="rzalfcasesense"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Case sensitivity</h1>
<div><p>If your application is sensitive to mixed case, move it into the
/QOpenSys file system, or into a user-defined file system that has been created
as case-sensitive.</p>
<p>The interfaces of operating systems, such as AIX<sup>®</sup> and Linux<sup>®</sup>, generally
differentiate between uppercase and lowercase letters. On <span class="keyword">i5/OS™</span>,
that is not always the case. You should be aware of several situations in
particular where case sensitivity might cause complications with existing
code. </p>
<p>Case sensitivity on a directory or file basis depends on the file system
you are using on <span class="keyword">i5/OS</span>.
The /QOpenSys file system is case sensitive, and you can create a user-defined
file system (UDFS) that is case sensitive.</p>
<div class="section"><h4 class="sectiontitle">Examples</h4><p>The following examples
are problems stemming from case sensitivity that you might encounter.</p>
</div>
<div class="example"><h4 class="sectiontitle">Example 1</h4><p>In this example, the
shell does a character comparison of the generic name prefix against what
is returned by readdir(). However, the QSYS.LIB file system returns directory
entries in uppercase, so none of the entries matches the lowercase generic
name prefix.</p>
<pre>$ ls -d /qsys.lib/v4r5m0.lib/qwobj*
/qsys.lib/v4r5m0.lib/qwobj* not found
$ ls -d /qsys.lib/v4r5m0.lib/QWOBJ*
/qsys.lib/v4r5m0.lib/QWOBJ.FILE</pre>
</div>
<div class="example"><h4 class="sectiontitle">Example 2</h4><p> This example is similar to the first
example except that, in this case, the <tt>find</tt> utility is doing the
comparison, and not the shell.</p>
<pre>$ find /qsys.lib/v4r5m0.lib/ -name 'qwobj*' -print
$ find /qsys.lib/v4r5m0.lib/ -name 'QWOBJ*' -print
/qsys.lib/v4r5m0.lib/QWOBJ.FILE</pre>
</div>
<div class="example"><h4 class="sectiontitle">Example 3</h4><p> The <tt>ps</tt> utility expects user
names to be case-sensitive and therefore does not recognize a match between
the uppercase name specified for the -u option and lowercase names returned
by the <span class="keyword">i5/OS</span> PASE runtime
function getpwuid():</p>
<pre>$ ps -uTIMMS -f
UID PID PPID C STIME TTY TIME CMD
$ ps -utimms -f
UID PID PPID C STIME TTY TIME CMD
timms 617 570 0 10:54:00 - 0:00 /QOpenSys/usr/bin/-sh -i
timms 660 617 0 11:14:56 - 0:00 ps -utimms -f</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzalfcopying.htm" title="Copy AIX binaries that you want to run in i5/OS PASE into the integrated file system.">Copy the i5/OS PASE program to your iSeries server</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../ifs/rzaaxfscmp.htm">File system comparison</a></div>
</div>
</div>
</body>
</html>