523
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
523
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
523
|
21 |
|
22 */ |
|
23 |
|
24 #ifdef HAVE_CONFIG_H |
1192
|
25 #include <config.h> |
523
|
26 #endif |
|
27 |
1341
|
28 #include <cerrno> |
|
29 #include <cstdio> |
|
30 #include <cstddef> |
|
31 #include <cstdlib> |
|
32 #include <cstring> |
|
33 |
1728
|
34 #include <string> |
|
35 |
1832
|
36 #ifdef HAVE_UNISTD_H |
2442
|
37 #ifdef HAVE_SYS_TYPES_H |
1832
|
38 #include <sys/types.h> |
2442
|
39 #endif |
1832
|
40 #include <unistd.h> |
|
41 #endif |
|
42 |
2926
|
43 #include "file-ops.h" |
|
44 #include "file-stat.h" |
|
45 #include "glob-match.h" |
4051
|
46 #include "lo-sstream.h" |
2926
|
47 #include "oct-env.h" |
1755
|
48 #include "str-vec.h" |
|
49 |
5102
|
50 #include "Cell.h" |
1355
|
51 #include "defun.h" |
1781
|
52 #include "dir-ops.h" |
1355
|
53 #include "dirfns.h" |
|
54 #include "error.h" |
1402
|
55 #include "gripes.h" |
1750
|
56 #include "oct-obj.h" |
1355
|
57 #include "pager.h" |
|
58 #include "procstream.h" |
|
59 #include "sysdep.h" |
1750
|
60 #include "toplev.h" |
1449
|
61 #include "unwind-prot.h" |
523
|
62 #include "utils.h" |
1742
|
63 #include "variables.h" |
523
|
64 |
2926
|
65 // XXX FIXME XXX -- changing the plotter directory should be handled |
|
66 // by registering a function for octave_env::chdir to call so that |
|
67 // this function can be eliminated. |
523
|
68 |
1328
|
69 static int |
3523
|
70 octave_change_to_directory (const std::string& newdir) |
1328
|
71 { |
2926
|
72 int cd_ok = octave_env::chdir (newdir); |
1328
|
73 |
|
74 if (cd_ok) |
5102
|
75 // XXX FIXME XXX -- this should be handled as a list of functions |
|
76 // to call so users can add their own chdir handlers. |
|
77 /* do_external_plotter_cd (newdir) */; |
1328
|
78 else |
3531
|
79 { |
|
80 using namespace std; |
|
81 |
|
82 error ("%s: %s", newdir.c_str (), strerror (errno)); |
|
83 } |
1328
|
84 |
|
85 return cd_ok; |
|
86 } |
|
87 |
4208
|
88 DEFCMD (cd, args, , |
3301
|
89 "-*- texinfo -*-\n\ |
|
90 @deffn {Command} cd dir\n\ |
|
91 @deffnx {Command} chdir dir\n\ |
|
92 Change the current working directory to @var{dir}. If @var{dir} is\n\ |
|
93 omitted, the current directory is changed to the users home\n\ |
|
94 directory. For example,\n\ |
523
|
95 \n\ |
3301
|
96 @example\n\ |
|
97 cd ~/octave\n\ |
|
98 @end example\n\ |
|
99 \n\ |
|
100 @noindent\n\ |
|
101 Changes the current working directory to @file{~/octave}. If the\n\ |
|
102 directory does not exist, an error message is printed and the working\n\ |
|
103 directory is not changed.\n\ |
|
104 @end deffn") |
523
|
105 { |
2086
|
106 octave_value_list retval; |
523
|
107 |
1755
|
108 int argc = args.length () + 1; |
|
109 |
1965
|
110 string_vector argv = args.make_argv ("cd"); |
1755
|
111 |
|
112 if (error_state) |
|
113 return retval; |
523
|
114 |
|
115 if (argc > 1) |
|
116 { |
3523
|
117 std::string dirname = file_ops::tilde_expand (argv[1]); |
523
|
118 |
1750
|
119 if (dirname.length () > 0 |
1755
|
120 && ! octave_change_to_directory (dirname)) |
523
|
121 { |
|
122 return retval; |
|
123 } |
|
124 } |
|
125 else |
|
126 { |
3523
|
127 std::string home_dir = octave_env::get_home_directory (); |
2926
|
128 |
|
129 if (home_dir.empty () || ! octave_change_to_directory (home_dir)) |
|
130 return retval; |
523
|
131 } |
|
132 |
|
133 return retval; |
|
134 } |
|
135 |
611
|
136 DEFALIAS (chdir, cd); |
|
137 |
661
|
138 // Get a directory listing. |
|
139 |
1965
|
140 static void |
|
141 cleanup_iprocstream (void *p) |
|
142 { |
2800
|
143 delete static_cast <iprocstream *> (p); |
1965
|
144 } |
|
145 |
4691
|
146 DEFCMD (ls, args, nargout, |
3301
|
147 "-*- texinfo -*-\n\ |
|
148 @deffn {Command} ls options\n\ |
|
149 List directory contents. For example,\n\ |
523
|
150 \n\ |
3301
|
151 @example\n\ |
|
152 ls -l\n\ |
|
153 @print{} total 12\n\ |
|
154 @print{} -rw-r--r-- 1 jwe users 4488 Aug 19 04:02 foo.m\n\ |
|
155 @print{} -rw-r--r-- 1 jwe users 1315 Aug 17 23:14 bar.m\n\ |
|
156 @end example\n\ |
|
157 \n\ |
|
158 The @code{dir} and @code{ls} commands are implemented by calling your\n\ |
|
159 system's directory listing command, so the available options may vary\n\ |
|
160 from system to system.\n\ |
|
161 @end deffn") |
523
|
162 { |
4691
|
163 octave_value retval; |
523
|
164 |
1755
|
165 int argc = args.length () + 1; |
|
166 |
1965
|
167 string_vector argv = args.make_argv ("ls"); |
1755
|
168 |
|
169 if (error_state) |
|
170 return retval; |
523
|
171 |
4051
|
172 OSSTREAM ls_buf; |
523
|
173 |
|
174 ls_buf << "ls -C "; |
|
175 for (int i = 1; i < argc; i++) |
2926
|
176 ls_buf << file_ops::tilde_expand (argv[i]) << " "; |
523
|
177 |
4051
|
178 ls_buf << OSSTREAM_ENDS; |
523
|
179 |
4051
|
180 iprocstream *cmd = new iprocstream (OSSTREAM_STR (ls_buf)); |
523
|
181 |
4051
|
182 OSSTREAM_FREEZE (ls_buf); |
1469
|
183 |
2985
|
184 unwind_protect::add (cleanup_iprocstream, cmd); |
523
|
185 |
1449
|
186 if (cmd && *cmd) |
|
187 { |
3147
|
188 char ch; |
|
189 |
4691
|
190 OSSTREAM output_buf; |
|
191 |
4489
|
192 for (;;) |
|
193 { |
|
194 if (cmd->get (ch)) |
5145
|
195 output_buf << ch; |
4489
|
196 else |
5144
|
197 break; |
4489
|
198 } |
4691
|
199 |
|
200 output_buf << OSSTREAM_ENDS; |
|
201 |
5145
|
202 std::string output = OSSTREAM_STR (output_buf); |
|
203 |
4691
|
204 if (nargout > 0) |
5145
|
205 retval = output; |
|
206 else |
|
207 octave_stdout << output; |
4691
|
208 |
|
209 OSSTREAM_FREEZE (output_buf); |
1449
|
210 } |
|
211 else |
|
212 error ("couldn't start process for ls!"); |
523
|
213 |
2985
|
214 unwind_protect::run (); |
523
|
215 |
|
216 return retval; |
|
217 } |
|
218 |
1957
|
219 DEFUN (pwd, , nargout, |
3301
|
220 "-*- texinfo -*-\n\ |
|
221 @deftypefn {Built-in Function} {} pwd ()\n\ |
|
222 Return the current working directory.\n\ |
|
223 @end deftypefn") |
523
|
224 { |
4233
|
225 octave_value retval; |
523
|
226 |
3523
|
227 std::string directory = octave_env::getcwd (); |
523
|
228 |
2926
|
229 if (directory.empty ()) |
|
230 warning ("pwd: can't find working directory!"); |
523
|
231 else |
|
232 { |
1592
|
233 if (nargout == 0) |
2095
|
234 octave_stdout << directory << "\n"; |
1592
|
235 else |
|
236 retval = directory; |
523
|
237 } |
1592
|
238 |
523
|
239 return retval; |
|
240 } |
|
241 |
1957
|
242 DEFUN (readdir, args, , |
3301
|
243 "-*- texinfo -*-\n\ |
|
244 @deftypefn {Built-in Function} {[@var{files}, @var{err}, @var{msg}] =} readdir (@var{dir})\n\ |
4691
|
245 Return names of the files in the directory @var{dir} as a cell array of\n\ |
|
246 strings. If an error occurs, return an empty cell array in @var{files}.\n\ |
1389
|
247 \n\ |
3301
|
248 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
249 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
250 system-dependent error message.\n\ |
|
251 @end deftypefn") |
1389
|
252 { |
2086
|
253 octave_value_list retval; |
1389
|
254 |
3523
|
255 retval(2) = std::string (); |
2669
|
256 retval(1) = -1.0; |
4691
|
257 retval(0) = Cell (); |
2669
|
258 |
1401
|
259 if (args.length () == 1) |
1389
|
260 { |
3523
|
261 std::string dirname = args(0).string_value (); |
1389
|
262 |
1401
|
263 if (error_state) |
1781
|
264 gripe_wrong_type_arg ("readdir", args(0)); |
1401
|
265 else |
|
266 { |
2926
|
267 dir_entry dir (file_ops::tilde_expand (dirname)); |
1389
|
268 |
1401
|
269 if (dir) |
1389
|
270 { |
1781
|
271 string_vector dirlist = dir.read (); |
4691
|
272 retval(0) = Cell (dirlist.qsort ()); |
2669
|
273 retval(1) = 0.0; |
1401
|
274 } |
|
275 else |
|
276 { |
2669
|
277 retval(2) = dir.error (); |
1401
|
278 } |
1389
|
279 } |
|
280 } |
|
281 else |
|
282 print_usage ("readdir"); |
|
283 |
1401
|
284 return retval; |
|
285 } |
|
286 |
|
287 // XXX FIXME XXX -- should probably also allow second arg to specify |
|
288 // mode. |
|
289 |
1957
|
290 DEFUN (mkdir, args, , |
3301
|
291 "-*- texinfo -*-\n\ |
4928
|
292 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} mkdir (@var{dir})\n\ |
3301
|
293 Create a directory named @var{dir}.\n\ |
1401
|
294 \n\ |
3301
|
295 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
296 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
297 system-dependent error message.\n\ |
|
298 @end deftypefn") |
1401
|
299 { |
2086
|
300 octave_value_list retval; |
1401
|
301 |
3523
|
302 retval(1) = std::string (); |
2669
|
303 retval(0) = -1.0; |
1401
|
304 |
|
305 if (args.length () == 1) |
|
306 { |
3523
|
307 std::string dirname = args(0).string_value (); |
1401
|
308 |
|
309 if (error_state) |
1402
|
310 gripe_wrong_type_arg ("mkdir", args(0)); |
1489
|
311 else |
1401
|
312 { |
3523
|
313 std::string msg; |
2669
|
314 |
2926
|
315 int status = file_ops::mkdir (file_ops::tilde_expand (dirname), |
|
316 0777, msg); |
1489
|
317 |
4233
|
318 retval(0) = status; |
2669
|
319 |
|
320 if (status < 0) |
|
321 retval(1) = msg; |
1401
|
322 } |
|
323 } |
|
324 else |
|
325 print_usage ("mkdir"); |
|
326 |
|
327 return retval; |
|
328 } |
|
329 |
1957
|
330 DEFUN (rmdir, args, , |
3301
|
331 "-*- texinfo -*-\n\ |
|
332 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} rmdir (@var{dir})\n\ |
|
333 Remove the directory named @var{dir}.\n\ |
1401
|
334 \n\ |
3301
|
335 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
336 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
337 system-dependent error message.\n\ |
|
338 @end deftypefn") |
1401
|
339 { |
2086
|
340 octave_value_list retval; |
1401
|
341 |
3523
|
342 retval(1) = std::string (); |
2669
|
343 retval(0) = -1.0; |
1401
|
344 |
|
345 if (args.length () == 1) |
|
346 { |
3523
|
347 std::string dirname = args(0).string_value (); |
1401
|
348 |
|
349 if (error_state) |
1402
|
350 gripe_wrong_type_arg ("rmdir", args(0)); |
1489
|
351 else |
1401
|
352 { |
3523
|
353 std::string msg; |
2669
|
354 |
2926
|
355 int status = file_ops::rmdir (file_ops::tilde_expand (dirname), msg); |
1489
|
356 |
4233
|
357 retval(0) = status; |
2669
|
358 |
|
359 if (status < 0) |
|
360 retval(1) = msg; |
1401
|
361 } |
|
362 } |
1389
|
363 else |
1401
|
364 print_usage ("rmdir"); |
|
365 |
|
366 return retval; |
|
367 } |
|
368 |
3710
|
369 DEFUN (link, args, , |
|
370 "-*- texinfo -*-\n\ |
|
371 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} link (@var{old}, @var{new})\n\ |
|
372 Create a new link (also known as a hard link) to an existing file.\n\ |
|
373 \n\ |
|
374 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
375 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
376 system-dependent error message.\n\ |
|
377 @end deftypefn") |
|
378 { |
|
379 octave_value_list retval; |
|
380 |
|
381 retval(1) = std::string (); |
|
382 retval(0) = -1.0; |
|
383 |
|
384 if (args.length () == 2) |
|
385 { |
|
386 std::string from = args(0).string_value (); |
|
387 |
|
388 if (error_state) |
|
389 gripe_wrong_type_arg ("link", args(0)); |
|
390 else |
|
391 { |
|
392 std::string to = args(1).string_value (); |
|
393 |
|
394 if (error_state) |
|
395 gripe_wrong_type_arg ("link", args(1)); |
|
396 else |
|
397 { |
|
398 std::string msg; |
|
399 |
|
400 int status = file_ops::link (from, to, msg); |
|
401 |
4233
|
402 retval(0) = status; |
3710
|
403 |
|
404 if (status < 0) |
|
405 retval(1) = msg; |
|
406 } |
|
407 } |
|
408 } |
|
409 else |
|
410 print_usage ("link"); |
|
411 |
|
412 return retval; |
|
413 } |
|
414 |
|
415 DEFUN (symlink, args, , |
|
416 "-*- texinfo -*-\n\ |
|
417 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} symlink (@var{old}, @var{new})\n\ |
|
418 Create a symbolic link @var{new} which contains the string @var{old}.\n\ |
|
419 \n\ |
|
420 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
421 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
422 system-dependent error message.\n\ |
|
423 @end deftypefn") |
|
424 { |
|
425 octave_value_list retval; |
|
426 |
|
427 retval(1) = std::string (); |
|
428 retval(0) = -1.0; |
|
429 |
|
430 if (args.length () == 2) |
|
431 { |
|
432 std::string from = args(0).string_value (); |
|
433 |
|
434 if (error_state) |
|
435 gripe_wrong_type_arg ("symlink", args(0)); |
|
436 else |
|
437 { |
|
438 std::string to = args(1).string_value (); |
|
439 |
|
440 if (error_state) |
|
441 gripe_wrong_type_arg ("symlink", args(1)); |
|
442 else |
|
443 { |
|
444 std::string msg; |
|
445 |
|
446 int status = file_ops::symlink (from, to, msg); |
|
447 |
4233
|
448 retval(0) = status; |
3710
|
449 |
|
450 if (status < 0) |
|
451 retval(1) = msg; |
|
452 } |
|
453 } |
|
454 } |
|
455 else |
|
456 print_usage ("symlink"); |
|
457 |
|
458 return retval; |
|
459 } |
|
460 |
|
461 DEFUN (readlink, args, , |
|
462 "-*- texinfo -*-\n\ |
4169
|
463 @deftypefn {Built-in Function} {[@var{result}, @var{err}, @var{msg}] =} readlink (@var{symlink})\n\ |
3710
|
464 Read the value of the symbolic link @var{symlink}.\n\ |
|
465 \n\ |
|
466 If successful, @var{result} contains the contents of the symbolic link\n\ |
|
467 @var{symlink}, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
468 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
469 system-dependent error message.\n\ |
|
470 @end deftypefn") |
|
471 { |
|
472 octave_value_list retval; |
|
473 |
|
474 retval(2) = std::string (); |
|
475 retval(1) = -1.0; |
|
476 retval(0) = std::string (); |
|
477 |
|
478 if (args.length () == 1) |
|
479 { |
|
480 std::string symlink = args(0).string_value (); |
|
481 |
|
482 if (error_state) |
|
483 gripe_wrong_type_arg ("readlink", args(0)); |
|
484 else |
|
485 { |
|
486 std::string result; |
|
487 std::string msg; |
|
488 |
|
489 int status = file_ops::readlink (symlink, result, msg); |
|
490 |
|
491 retval(0) = result; |
|
492 |
4233
|
493 retval(1) = status; |
3710
|
494 |
|
495 if (status < 0) |
|
496 retval(2) = msg; |
|
497 } |
|
498 } |
|
499 else |
|
500 print_usage ("readlink"); |
|
501 |
|
502 return retval; |
|
503 } |
|
504 |
1957
|
505 DEFUN (rename, args, , |
3301
|
506 "-*- texinfo -*-\n\ |
|
507 @deftypefn {Built-in Function} {[@var{err}, @var{msg}] =} rename (@var{old}, @var{new})\n\ |
|
508 Change the name of file @var{old} to @var{new}.\n\ |
1401
|
509 \n\ |
3301
|
510 If successful, @var{err} is 0 and @var{msg} is an empty string.\n\ |
|
511 Otherwise, @var{err} is nonzero and @var{msg} contains a\n\ |
|
512 system-dependent error message.\n\ |
|
513 @end deftypefn") |
1401
|
514 { |
2086
|
515 octave_value_list retval; |
1401
|
516 |
3523
|
517 retval(1) = std::string (); |
2669
|
518 retval(0) = -1.0; |
1401
|
519 |
|
520 if (args.length () == 2) |
|
521 { |
3523
|
522 std::string from = args(0).string_value (); |
1728
|
523 |
1401
|
524 if (error_state) |
1402
|
525 gripe_wrong_type_arg ("rename", args(0)); |
|
526 else |
1401
|
527 { |
3523
|
528 std::string to = args(1).string_value (); |
1728
|
529 |
1402
|
530 if (error_state) |
|
531 gripe_wrong_type_arg ("rename", args(1)); |
2669
|
532 else |
1402
|
533 { |
3523
|
534 std::string msg; |
2669
|
535 |
2926
|
536 int status = file_ops::rename (from, to, msg); |
2669
|
537 |
4233
|
538 retval(0) = status; |
2669
|
539 |
|
540 if (status < 0) |
|
541 retval(1) = msg; |
1402
|
542 } |
1401
|
543 } |
|
544 } |
|
545 else |
|
546 print_usage ("rename"); |
|
547 |
1389
|
548 return retval; |
|
549 } |
|
550 |
2495
|
551 DEFUN (glob, args, , |
3301
|
552 "-*- texinfo -*-\n\ |
|
553 @deftypefn {Built-in Function} {} glob (@var{pattern})\n\ |
5444
|
554 Given an array of strings (as a char array or a cell array) in\n\ |
|
555 @var{pattern}, return a cell array of file names that match any of\n\ |
|
556 them, or an empty cell array if no patterns match. Tilde expansion\n\ |
|
557 is performed on each of the patterns before looking for matching file\n\ |
|
558 names. For example,\n\ |
2495
|
559 \n\ |
3301
|
560 @example\n\ |
|
561 @group\n\ |
|
562 glob (\"/vm*\")\n\ |
|
563 @result{} \"/vmlinuz\"\n\ |
|
564 @end group\n\ |
|
565 @end example\n\ |
5444
|
566 @end deftypefn\n\ |
|
567 @seealso{ls,dir}") |
2495
|
568 { |
|
569 octave_value retval; |
|
570 |
|
571 if (args.length () == 1) |
|
572 { |
|
573 string_vector pat = args(0).all_strings (); |
|
574 |
|
575 if (error_state) |
|
576 gripe_wrong_type_arg ("glob", args(0)); |
|
577 else |
|
578 { |
2926
|
579 glob_match pattern (file_ops::tilde_expand (pat)); |
2495
|
580 |
4691
|
581 retval = Cell (pattern.glob ()); |
2495
|
582 } |
|
583 } |
|
584 else |
|
585 print_usage ("glob"); |
|
586 |
|
587 return retval; |
|
588 } |
|
589 |
2496
|
590 DEFUN (fnmatch, args, , |
3301
|
591 "-*- texinfo -*-\n\ |
|
592 @deftypefn {Built-in Function} {} fnmatch (@var{pattern}, @var{string})\n\ |
|
593 Return 1 or zero for each element of @var{string} that matches any of\n\ |
|
594 the elements of the string array @var{pattern}, using the rules of\n\ |
|
595 filename pattern matching. For example,\n\ |
2496
|
596 \n\ |
3301
|
597 @example\n\ |
|
598 @group\n\ |
|
599 fnmatch (\"a*b\", [\"ab\"; \"axyzb\"; \"xyzab\"])\n\ |
|
600 @result{} [ 1; 1; 0 ]\n\ |
|
601 @end group\n\ |
|
602 @end example\n\ |
|
603 @end deftypefn") |
2496
|
604 { |
|
605 octave_value retval; |
|
606 |
|
607 if (args.length () == 2) |
|
608 { |
|
609 string_vector pat = args(0).all_strings (); |
|
610 string_vector str = args(1).all_strings (); |
|
611 |
|
612 if (error_state) |
|
613 gripe_wrong_type_arg ("fnmatch", args(0)); |
|
614 else |
|
615 { |
2926
|
616 glob_match pattern (file_ops::tilde_expand (pat)); |
2496
|
617 |
|
618 Array<bool> tmp = pattern.match (str); |
|
619 |
5275
|
620 octave_idx_type n = tmp.length (); |
2496
|
621 |
|
622 ColumnVector result (n); |
|
623 |
5275
|
624 for (octave_idx_type i = 0; i < n; i++) |
2496
|
625 result(i) = tmp(i); |
|
626 |
3418
|
627 retval = result; |
2496
|
628 } |
|
629 } |
|
630 else |
|
631 print_usage ("fnmatch"); |
|
632 |
|
633 return retval; |
|
634 } |
|
635 |
4264
|
636 void |
|
637 symbols_of_dirfns (void) |
|
638 { |
|
639 DEFCONST (filesep, file_ops::dir_sep_str, |
|
640 "-*- texinfo -*-\n\ |
|
641 @defvr {Built-in Variable} filesep\n\ |
|
642 The character used to separate directory names. The value\n\ |
|
643 of this variable is system dependent.\n\ |
|
644 @end defvr"); |
|
645 |
|
646 } |
|
647 |
523
|
648 /* |
|
649 ;;; Local Variables: *** |
|
650 ;;; mode: C++ *** |
|
651 ;;; End: *** |
|
652 */ |