diff -r 8d33f6ebc961 src/org/armedbear/lisp/Pathname.java
a
|
b
|
|
1254 | 1254 | boolean nameSupplied = false; |
1255 | 1255 | boolean typeSupplied = false; |
1256 | 1256 | boolean directorySupplied = false; |
| 1257 | boolean versionSupplied = false; |
1257 | 1258 | for (int i = 0; i < args.length; i += 2) { |
1258 | 1259 | LispObject key = args[i]; |
1259 | 1260 | LispObject value = args[i + 1]; |
… |
… |
|
1290 | 1291 | typeSupplied = true; |
1291 | 1292 | } else if (key == Keyword.VERSION) { |
1292 | 1293 | version = value; |
| 1294 | versionSupplied = true; |
1293 | 1295 | } else if (key == Keyword.DEFAULTS) { |
1294 | 1296 | defaults = coerceToPathname(value); |
1295 | 1297 | } else if (key == Keyword.CASE) { |
… |
… |
|
1312 | 1314 | if (!typeSupplied) { |
1313 | 1315 | type = defaults.type; |
1314 | 1316 | } |
| 1317 | if (!versionSupplied) { |
| 1318 | version = defaults.version; |
| 1319 | } |
1315 | 1320 | } |
1316 | 1321 | final Pathname p; |
1317 | 1322 | final boolean logical; |
… |
… |
|
1385 | 1390 | p.type = type; |
1386 | 1391 | } |
1387 | 1392 | } |
| 1393 | |
1388 | 1394 | p.version = version; |
1389 | 1395 | return p; |
1390 | 1396 | } |
diff -r 8d33f6ebc961 src/org/armedbear/lisp/top-level.lisp
a
|
b
|
|
419 | 419 | (results (multiple-value-list (sys:interactive-eval form)))) |
420 | 420 | (dolist (result results) |
421 | 421 | (fresh-line out) |
422 | | (prin1 result out))))) |
| 422 | (pprint result out))))) |
423 | 423 | |
424 | 424 | (defun top-level-loop () |
425 | 425 | (fresh-line) |
diff -r 8d33f6ebc961 test/lisp/abcl/pathname-tests.lisp
a
|
b
|
|
1717 | 1717 | (deftest pathname.make-pathname.1 |
1718 | 1718 | (make-pathname :directory nil :defaults "/home/fare/") |
1719 | 1719 | #p"") |
| 1720 | |
| 1721 | (deftest pathname.make-pathname.2 |
| 1722 | (let ((p (make-pathname |
| 1723 | :defaults (make-pathname :name :wild :type :wild :version :wild :directory :wild)))) |
| 1724 | (values |
| 1725 | (pathname-name p) (pathname-type p) (pathname-version p) (pathname-directory p))) |
| 1726 | :wild :wild :wild (:absolute :wild)) |
| 1727 | |
| 1728 | No newline at end of file |