Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Factor does not properly expand tilde shell characters in the file path #440

Closed
rohshall opened this Issue · 3 comments

3 participants

@rohshall

"~/Programs/Ruby/mysin.sim" utf8 file-lines

generates this error:

Unix system call “open” failed:

No such file or directory (2)

It was called with the following arguments:

"/home/salil/Programs/Ruby/~/Programs/Ruby/mysin.sim"
0
438

"$HOME/Programs/Ruby/mysin.sim" utf8 file-lines

Unix system call “open” failed:

No such file or directory (2)

It was called with the following arguments:

"/home/salil/Programs/Ruby/$HOME/Programs/Ruby/mysin.sim"
0
438

However,
"/home/salil/Programs/Ruby/mysin.sim" utf8 file-lines
works as expected.

Version: I am using the development release on 2011-11-18 for Linux.

@otoburb

It seems right to implement ~ (tilde) support on *nix platforms, but I'm not so sure we want to support $HOME and other environment variables ($LIBRARY, $LD_PATH). In the case of $HOME, it may be better to ask that that the path be constructed directly via:
```USE: environment
home "Programs/Ruby/mysin.sim" append-path .

@otoburb

Fixed in #461

@mrjbq7
Collaborator

Fixed in 91d993c, f48ba4d, 45870bf.

@mrjbq7 mrjbq7 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.