On mið 20.jan 2016 12:56, Andreas Lobinger wrote:
Hello colleague,
On Wednesday, January 13, 2016 at 11:28:39 PM UTC+1, Tony Kelman wrote:
Unix shell commands that we happened to be getting from git are no
longer on Julia's path. This is not temporary. Windows is not unix.
If you want to use unix shell commands on windows, either download
and add your own windows posix layer to your path (temporarily in
juliarc, not permanently where it will break other software), or
call powershell which has many aliases spelled the same as unix
shell commands.
i agree, windows is not unix (it never was) and the following might not
be helpful, but
Matlab provides (on any OS) a very small set of shell-like commands (cd,
dir, ls,mkdir, rmdir, delete, movefile, copyfile).
Just to be clear, is this issue about shell access in the REPL, or for
run() ?
If only in the REPL, as for convenience, for interactive use, I see not
problem with accessing the cmd or powershell (latter better? does it or
former have a good subset of compatibility, e.g. with the subset above?)
on Windows and bash in Linux/Unix for e.g.:
for i in $( ls ); do
echo item: $i
done
that didn't work, and I wouldn't expect to work in Windows (but I would
in Unix).
And providing something like this at a julia REPL should be considered
user friendly.
Exactly, but only in the REPL. If run() would allow access to a shell,
then incompatibility comes in, in full force or we would promise to
provide one (e.g. bash) for Unix compatibility - and it would be a bad idea.
--
Palli.