Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
create a symlink generically..
- X-seq: zsh-users 14009
- From: fREW Schmidt <frioux@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: create a symlink generically..
- Date: Wed, 8 Apr 2009 19:11:40 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=iIPi6lQTdEqb2sRHK52przTfbWuiaMDXIiRCjvxbtkI=; b=IJYcQzaIhq+GxpHO+7BiILtyald+RgG5vMQJxoahma4KlPqDl+nfSonCK9wJJ9ZnIy gbwkVRf69FVlEmbDUYgUmWz2gE10X7wmnk4bJTP1LqX/XNO1eDICI/Z0tkiGWU/xG185 RyK7HGiOMUT+vzepaZ3YavA4ZYN/sbxrnCJ4I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=TULqcVN16KCVUiEUaaOPHBR50Inx6LX/rLbGk+3IT3HdMbJlJPq5q2+c8OeX/Bc90m /gjnZOYbli2eNrlltiJI6fEeMc1XSwEypT+6mK4fFtt6FcNMBRCtCc+QTouHC97z94ws N6WJhh+kimmtFQon0QeATMlxhh+lkL3EG9tq8=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi all,
I am trying to make a script that will make a bunch of symlinks. I want the script to be able to be run from a number of locations, so I can't just do:
# ~/foo/bar is the current dir
ln -s ~/foo/bar/baz ~/baz
I can do:
cp -l baz ~/baz
but it makes hard links.
I was thinking that I could either have zsh do this:
ln -s ./baz ~/baz
and have it automatically expand ./baz to it's full path name. Or maybe there is some unix tool I don't know about.
Thanks for any tips at all!
--
fREW Schmidt
http://blog.afoolishmanifesto.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author