Doug Coleman
8c3df2ede4
core: Remove some foo'bar words and a lot of postpone:
2018-08-09 21:59:15 -04:00
Doug Coleman
f05c7e8cd8
factor: char: a -> ch'a.
...
Also all contractions are not allowed in word names anymore. Even Data cannot use contractions...
2018-08-09 18:02:38 -04:00
Doug Coleman
343674189c
factor: Let url"" and sbuf"" work without spaces.
...
Also url[[]] if you define a url[[ word.
2018-08-02 10:37:02 -04:00
Doug Coleman
7730fc5c64
Merge remote-tracking branch 'origin/master' into modern-harvey2
2018-08-02 07:57:42 -04:00
Doug Coleman
db9386d4c3
io.pathnames: Fix using list.
2018-07-07 12:09:02 -05:00
Doug Coleman
3ac520a8ec
io.pathnames: Add canonicalize-path.
...
The idea is to make a canonical representation of any path, taking into
account . and .. and unicode-prefix on Windows.
The use case is in a shell you have a current-directory and you can do
crazy commands like ``cd ../foo/bar/baz/../.././././`` and get the
canonical/shortened directory name. You can also use this word to
compare if two paths are the same.
2018-07-07 11:59:59 -05:00
Doug Coleman
147d13ed19
io.pathnames: Add a useful word 3append-path
2018-07-04 18:29:17 -05:00
Doug Coleman
6dc30e953e
io.pathnames: Add 3append-path.
2017-09-14 23:11:22 -05:00
Doug Coleman
3aa096e2e5
docs: Update docs.
2017-08-31 21:21:14 -05:00
Doug Coleman
5507c2b676
factor: [let to let[, [| to |[
2017-08-31 21:21:13 -05:00
Doug Coleman
c436f6dbad
factor: char: postpone: color: hexcolor: flexhexcolor: decimal:
2017-08-31 21:21:13 -05:00
Doug Coleman
acfb3a8992
strings.parser: Add character escapes for :[{(.
...
You will need to bootstrap or change them to ``char: :`` then ``char: \:`` in strings.parser.
2017-08-31 21:21:12 -05:00
John Benediktsson
acb4dec55d
Revert "io.pathnames: fix separator when appending paths in Windows"
...
This reverts commit b477c43293 .
2016-08-23 09:54:16 -07:00
masweeney
b477c43293
io.pathnames: fix separator when appending paths in Windows
2016-08-23 08:53:38 -07:00
John Benediktsson
2269b07d33
use with-temp-file and with-temp-directory in some tests.
2016-04-04 10:33:03 -07:00
Doug Coleman
fe7d6ea76e
io.pathnames: don't use temp-file
2016-03-30 17:31:32 -07:00
John Benediktsson
b75def3bfb
hashtables: remove 2hashtable (not really used).
2016-03-03 14:38:16 -08:00
Doug Coleman
9c4ed3ddae
core: Don't use with-scope. H{ } clone [ ] with-variables is the same thing and is more explicit.
2016-03-02 17:18:42 -08:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
02008979d9
factor: Change ERROR: foo ; to define ``throw-foo`` instead of having ``foo`` throw implicitly. The old ``foo`` still throws implicitly because this is a big change to get right in one patch, but it should be removed soon.
2015-08-12 15:26:18 -05:00
Doug Coleman
1fcf96cada
factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon.
2015-07-25 22:59:56 -07:00
Doug Coleman
fbbd09f3c5
factor: system:image -> image-path, like vm-path. image is all over the place png, jpg etc
2015-07-20 00:17:09 -07:00
Doug Coleman
43d6f1d3e2
factor: Retrying on the unit tests. Also normalize some syntax with FUNCTION:.
2015-07-02 17:28:17 -07:00
Doug Coleman
59f3b1ea57
Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
...
Needs a bit more work.
This reverts commit 7e54cc2824 .
2015-07-02 13:47:06 -07:00
Doug Coleman
7e54cc2824
factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!
2015-07-02 11:36:08 -07:00
Doug Coleman
999aa7c897
factor: clean up spaces in -tests files
2015-07-02 10:34:01 -07:00
Doug Coleman
352e5de16a
core, basis, extra: Remove DOS line endings from files.
...
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson
57f9d78892
improve help by linking to types directly.
2014-05-23 20:20:15 -07:00
John Benediktsson
5c810c2fa5
io.pathnames: remove file-directory (redundant to parent-directory).
2012-10-23 09:47:57 -07:00
John Benediktsson
65678aeeb2
io.pathnames: adding file-directory.
2012-10-22 18:09:58 -07:00
John Benediktsson
4e72d80256
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
otoburb
30d8b5211e
io.pathnames: removed dependency on environment.
...
I had an erroneous dependency on basis/environment.
2012-03-30 21:03:01 -07:00
otoburb
152c301d49
io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".
...
This mimics the same behaviour as "ls ~" in the shell, which expands the alias
as a directory, and not as a filename. For the specific edge-case where a
filename called "~" must have a path constructed to it (e.g. "./~" or "~/~").
2012-03-30 21:01:57 -07:00
otoburb
cb6eb8b2bd
io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.
...
vocab:, resource: and ~/ are special pathnames. Modified absolute-path word,
added test cases and updated io.pathname documentation.
2012-03-30 21:01:46 -07:00
Joe Groff
0ddb6fa96e
Revert "io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname."
...
This reverts commit 4e10f09787 .
2012-01-31 11:46:02 -08:00
Joe Groff
af8dc62104
Revert "io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/"."
...
This reverts commit 251a2a19a6 .
2012-01-31 11:45:51 -08:00
otoburb
dc11f2d7a2
io.pathnames: Revised ~ support to expand on the first tilde, and not on "~/".
...
This mimics the same behaviour as "ls ~" in the shell, which expands the alias
as a directory, and not as a filename. For the specific edge-case where a
filename called "~" must have a path constructed to it (e.g. "./~" or "~/~").
2012-01-11 02:36:47 +00:00
otoburb
a5e8cc75b9
io.pathnames: Added ~/ (tilde) prefix recognition as a special pathname.
...
vocab:, resource: and ~/ are special pathnames. Modified absolute-path word,
added test cases and updated io.pathname documentation.
2012-01-11 02:36:47 +00:00
Keita Haga
ac67370e15
io.pathnames: enclose a few example outputs in double quote characters
2011-01-14 20:07:10 +09:00
Keita Haga
18811fb04a
io.pathnames: fix typo in docs
2010-11-28 00:47:59 +09:00
Doug Coleman
4b6946da45
Rename append-path-naive to append-relative-path, fix bugs to support Firefox FTP again
2010-09-05 00:40:47 -05:00
Doug Coleman
0ec1a89f54
If ftp clients send a path starting with /, treat it as a path relative to the serving directory. Expose absolute-path? and append-path-naive in io.pathnames to implement this change.
2010-09-04 22:16:57 -05:00
Joe Groff
e70fcf159d
Revert "fix append-path and vocab-dir to use path-separator"
...
This reverts commit 0f3026b871 .
2010-02-17 16:06:45 -08:00
Joe Groff
97654b67c1
Revert "io.pathnames: make absolute-path? public"
...
This reverts commit 48756c9fca .
2010-02-17 16:06:30 -08:00
Joe Groff
1250a0fcfd
Revert "make io.pathnames tests path-separator-neutral"
...
This reverts commit f344c00629 .
2010-02-17 16:06:13 -08:00
Joe Groff
64a2748280
Merge branch 'master' of git://factorcode.org/git/factor
2010-02-17 12:50:46 -08:00
Slava Pestov
33bbd05507
io.pathnames: fix doc typo
2010-02-18 08:38:45 +13:00
Joe Groff
6ac33f6dea
make io.pathnames tests path-separator-neutral
2010-02-16 19:28:51 -08:00
Joe Groff
f59f28d788
io.pathnames: make absolute-path? public
2010-02-16 19:01:44 -08:00
Joe Groff
4a182cfbad
fix append-path and vocab-dir to use path-separator
2010-02-16 18:40:40 -08:00