On Windows one can

julia> pwd()
"C:\\programs\\Julia-0.4"

shell> cd
C:\j

julia> pwd()
"C:\\j"

quarta-feira, 20 de Janeiro de 2016 às 15:45:04 UTC, Yichao Yu escreveu:
>
> On Wed, Jan 20, 2016 at 10:39 AM, Tony Kelman <[email protected] 
> <javascript:>> wrote: 
> > Julia has portable functions for all of these, you don't need to use 
> shell 
> > mode for cd, dir, readdir, mkdir, rm, mv, or cp. 
>
> FWIW, you can't use shell for `cd` on any platforms supported by julia. 
>
> > 
> > 
> > 
> > On Wednesday, January 20, 2016 at 4:56:07 AM UTC-8, 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). 
> >> 
> >> And providing something like this at a julia REPL should be considered 
> >> user friendly. 
> >> 
> >> Wishing a happy day, 
> >>        Andreas 
> >> 
>

Reply via email to