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