Symlinks (was Re: [OS X TeX] Fwd: Unwanted files have which
Chris Goedde
goedde at cascade.phy.depaul.edu
Fri Aug 20 10:54:17 EDT 2004
Bruno, maybe if you gave an example of what goes wrong, or what
you think is not working, that would help.
Here's an example of my doing what (I think) you want to do, with my
comments interpersed (using the TeX comment character :-)). In it, I create
a link called TestLink to an existing directory Test.
% List files in current directory
blah:~ foo$ ls -l
total 0
drwx------ 4 foo foo 136 20 Aug 09:28 Desktop
drwx------ 15 foo foo 510 19 Aug 17:01 Documents
drwx------ 30 foo foo 1020 4 Aug 17:16 Library
drwx------ 3 foo foo 102 16 Jul 09:26 Movies
drwx------ 5 foo foo 170 21 Jul 17:16 Music
drwx------ 3 foo foo 102 16 Jul 09:26 Pictures
drwxr-xr-x 4 foo foo 136 16 Jul 09:26 Public
drwxr-xr-x 5 foo foo 170 16 Jul 09:26 Sites
% Create directory Test
blah:~ foo$ mkdir Test
% Create file TempFile in Test
blah:~ foo$ touch Test/TempFile
% Create link TestLink to directory Test
blah:~ foo$ ln -s Test TestLink
% List files again, notice that TestLink is a link to Test
blah:~ foo$ ls -l
total 8
drwx------ 4 foo foo 136 20 Aug 09:28 Desktop
drwx------ 15 foo foo 510 19 Aug 17:01 Documents
drwx------ 30 foo foo 1020 4 Aug 17:16 Library
drwx------ 3 foo foo 102 16 Jul 09:26 Movies
drwx------ 5 foo foo 170 21 Jul 17:16 Music
drwx------ 3 foo foo 102 16 Jul 09:26 Pictures
drwxr-xr-x 4 foo foo 136 16 Jul 09:26 Public
drwxr-xr-x 5 foo foo 170 16 Jul 09:26 Sites
drwxr-xr-x 3 foo foo 102 20 Aug 09:34 Test
lrwxr-xr-x 1 foo foo 4 20 Aug 09:34 TestLink -> Test
% List the files in the "directory" TestLink
blah:~ foo$ ls -l TestLink
total 0
-rw-r--r-- 1 foo foo 0 20 Aug 09:34 TempFile
Chris
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list