Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7614

DirectoryStack[] not showing top directory stack item

From phillman5 <phillman5@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject DirectoryStack[] not showing top directory stack item
Date 2012-01-06 09:23 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <je6ei1$qbd$1@smc.vnet.net> (permalink)

Show all headers | View raw


Looking at the on line help for DirectoryStack it shows the following
example:

SetDirectory[$InstallationDirectory]
  "C:\Program Files\Wolfram Research\Mathematica\6.0"

DirectoryStack[]
   {"C:\Program Files\Wolfram Research\Mathematica\6.0",
   "C:\Program Files\Wolfram Research\Mathematica\6.0\Documentation\
   English\System\ReferencePages\Symbols", "C:\Documents and
   Settings\roger\My Documents"}

However when I request a DirectoryStack it never shows the top item

SetDirectory[NotebookDirectory[]]
  /Volumes/RamDisk/D1 line                  <--this is correct

DirectoryStack[]
  "/Users/phillman5"                              <- missing new stack
value set above

However if I do a Directory[] I do get the top entry

Directory[]
  /Volumes/RamDisk/D1 line

On starting Mathematica it shows that the DirectoryStack is empty.

Also  ResetDirectory[] shows the resulting top DirectoryStack item,
not the one popped.

I am using Mathematica 7.0.1.0 on Mac OSX 10.6.8

Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

DirectoryStack[] not showing top directory stack item phillman5 <phillman5@gmail.com> - 2012-01-06 09:23 +0000
  Re: DirectoryStack[] not showing top directory stack item "Sjoerd C. de Vries" <sjoerd.c.devries@gmail.com> - 2012-01-07 10:23 +0000
  Re: DirectoryStack[] not showing top directory stack item Szabolcs Horvát <szhorvat@gmail.com> - 2012-01-07 10:16 +0000

csiph-web