On Thursday, 19 September 2002 at 9:15:31 +0200, Oliver Fischer wrote:
> Hallo,
>
> kann mir jemand das Verhalten von ln in folgender Situation erklaeren?
>
> Aufgabe: Symbolisches Verlinken einer Datei/eines Verzeichnisses in
> einem Unterverzeichnis nach ~/.
>
> ---------------------------------------------------------------------------
>> /dotfiles/xemacs-container $ ls -a
> . .emacs CVS Makefile~
> .. .xemacs Makefile
>> /dotfiles/xemacs-container $ ln -s .emacs ~/.emacs
>> /dotfiles/xemacs-container $ cd ~/
>> $ ls -l .emacs
> lrwxr-xr-x 1 plexus wheel 6 Sep 19 09:12 .emacs -> .emacs
>> $ cat .emacs
> cat: .emacs: Too many levels of symbolic links
> ---------------------------------------------------------------------------
>
> Nun, vielleicht habe ich in den letzten Jahren etwas wichtiges verpasst,
> aber bis heute morgen hatte ich erwartet, das der symbolische Link
> nach ~/dotfiles/xemacs-container/.emacs verweist.
Dann musst Du das sagen, etwa mit
$ ln -s ~/dotfiles/xemacs-container/.emacs ~/.emacs
Beim Symlink nimmt ln einfach den ersten Namen als den Wert, ohne
irgendwelche Pathnamen anzuhängen. Soviel ich weiß, war's schon immer
so.
Greg
-- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org with "unsubscribe de-bsd-questions" in the body of the messageReceived on Thu 19 Sep 2002 - 10:03:04 CEST