8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / cmd / dtrace / test / tst / common / funcs / tst.basename.d.out
blobe16541adbb03d0ed6678723837d5c8d819542935
1 #!/usr/bin/ksh
3 if [ `basename "/foo/bar/baz"` != "baz" ]; then
4 echo "basename(\"/foo/bar/baz\") is \"baz\"; expected \"`basename "/foo/bar/baz"`"\"
5 fi
7 if [ `dirname "/foo/bar/baz"` != "/foo/bar" ]; then
8 echo "dirname(\"/foo/bar/baz\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz"`"\"
9 fi
11 if [ `basename "/foo/bar///baz/"` != "baz" ]; then
12 echo "basename(\"/foo/bar///baz/\") is \"baz\"; expected \"`basename "/foo/bar///baz/"`"\"
15 if [ `dirname "/foo/bar///baz/"` != "/foo/bar" ]; then
16 echo "dirname(\"/foo/bar///baz/\") is \"/foo/bar\"; expected \"`dirname "/foo/bar///baz/"`"\"
19 if [ `basename "/foo/bar/baz/"` != "baz" ]; then
20 echo "basename(\"/foo/bar/baz/\") is \"baz\"; expected \"`basename "/foo/bar/baz/"`"\"
23 if [ `dirname "/foo/bar/baz/"` != "/foo/bar" ]; then
24 echo "dirname(\"/foo/bar/baz/\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz/"`"\"
27 if [ `basename "/foo/bar/baz//"` != "baz" ]; then
28 echo "basename(\"/foo/bar/baz//\") is \"baz\"; expected \"`basename "/foo/bar/baz//"`"\"
31 if [ `dirname "/foo/bar/baz//"` != "/foo/bar" ]; then
32 echo "dirname(\"/foo/bar/baz//\") is \"/foo/bar\"; expected \"`dirname "/foo/bar/baz//"`"\"
35 if [ `basename "/foo/bar/baz/."` != "." ]; then
36 echo "basename(\"/foo/bar/baz/.\") is \".\"; expected \"`basename "/foo/bar/baz/."`"\"
39 if [ `dirname "/foo/bar/baz/."` != "/foo/bar/baz" ]; then
40 echo "dirname(\"/foo/bar/baz/.\") is \"/foo/bar/baz\"; expected \"`dirname "/foo/bar/baz/."`"\"
43 if [ `basename "/foo/bar/baz/./"` != "." ]; then
44 echo "basename(\"/foo/bar/baz/./\") is \".\"; expected \"`basename "/foo/bar/baz/./"`"\"
47 if [ `dirname "/foo/bar/baz/./"` != "/foo/bar/baz" ]; then
48 echo "dirname(\"/foo/bar/baz/./\") is \"/foo/bar/baz\"; expected \"`dirname "/foo/bar/baz/./"`"\"
51 if [ `basename "/foo/bar/baz/.//"` != "." ]; then
52 echo "basename(\"/foo/bar/baz/.//\") is \".\"; expected \"`basename "/foo/bar/baz/.//"`"\"
55 if [ `dirname "/foo/bar/baz/.//"` != "/foo/bar/baz" ]; then
56 echo "dirname(\"/foo/bar/baz/.//\") is \"/foo/bar/baz\"; expected \"`dirname "/foo/bar/baz/.//"`"\"
59 if [ `basename "foo/bar/baz/"` != "baz" ]; then
60 echo "basename(\"foo/bar/baz/\") is \"baz\"; expected \"`basename "foo/bar/baz/"`"\"
63 if [ `dirname "foo/bar/baz/"` != "foo/bar" ]; then
64 echo "dirname(\"foo/bar/baz/\") is \"foo/bar\"; expected \"`dirname "foo/bar/baz/"`"\"
67 if [ `basename "/"` != "/" ]; then
68 echo "basename(\"/\") is \"/\"; expected \"`basename "/"`"\"
71 if [ `dirname "/"` != "/" ]; then
72 echo "dirname(\"/\") is \"/\"; expected \"`dirname "/"`"\"
75 if [ `basename "./"` != "." ]; then
76 echo "basename(\"./\") is \".\"; expected \"`basename "./"`"\"
79 if [ `dirname "./"` != "." ]; then
80 echo "dirname(\"./\") is \".\"; expected \"`dirname "./"`"\"
83 if [ `basename "//"` != "/" ]; then
84 echo "basename(\"//\") is \"/\"; expected \"`basename "//"`"\"
87 if [ `dirname "//"` != "/" ]; then
88 echo "dirname(\"//\") is \"/\"; expected \"`dirname "//"`"\"
91 if [ `basename "/."` != "." ]; then
92 echo "basename(\"/.\") is \".\"; expected \"`basename "/."`"\"
95 if [ `dirname "/."` != "/" ]; then
96 echo "dirname(\"/.\") is \"/\"; expected \"`dirname "/."`"\"
99 if [ `basename "/./"` != "." ]; then
100 echo "basename(\"/./\") is \".\"; expected \"`basename "/./"`"\"
103 if [ `dirname "/./"` != "/" ]; then
104 echo "dirname(\"/./\") is \"/\"; expected \"`dirname "/./"`"\"
107 if [ `basename "/./."` != "." ]; then
108 echo "basename(\"/./.\") is \".\"; expected \"`basename "/./."`"\"
111 if [ `dirname "/./."` != "/." ]; then
112 echo "dirname(\"/./.\") is \"/.\"; expected \"`dirname "/./."`"\"
115 if [ `basename "/.//"` != "." ]; then
116 echo "basename(\"/.//\") is \".\"; expected \"`basename "/.//"`"\"
119 if [ `dirname "/.//"` != "/" ]; then
120 echo "dirname(\"/.//\") is \"/\"; expected \"`dirname "/.//"`"\"
123 if [ `basename "."` != "." ]; then
124 echo "basename(\".\") is \".\"; expected \"`basename "."`"\"
127 if [ `dirname "."` != "." ]; then
128 echo "dirname(\".\") is \".\"; expected \"`dirname "."`"\"
131 if [ `basename "f"` != "f" ]; then
132 echo "basename(\"f\") is \"f\"; expected \"`basename "f"`"\"
135 if [ `dirname "f"` != "." ]; then
136 echo "dirname(\"f\") is \".\"; expected \"`dirname "f"`"\"
139 if [ `basename "f/"` != "f" ]; then
140 echo "basename(\"f/\") is \"f\"; expected \"`basename "f/"`"\"
143 if [ `dirname "f/"` != "." ]; then
144 echo "dirname(\"f/\") is \".\"; expected \"`dirname "f/"`"\"
147 if [ `basename "/////"` != "/" ]; then
148 echo "basename(\"/////\") is \"/\"; expected \"`basename "/////"`"\"
151 if [ `dirname "/////"` != "/" ]; then
152 echo "dirname(\"/////\") is \"/\"; expected \"`dirname "/////"`"\"
155 if [ `basename ""` != "." ]; then
156 echo "basename(\"\") is \".\"; expected \"`basename ""`"\"
159 if [ `dirname ""` != "." ]; then
160 echo "dirname(\"\") is \".\"; expected \"`dirname ""`"\"