bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: to - Bookmark file system locations in bash on POSIX-like systems


From: Mara Kim
Subject: Re: to - Bookmark file system locations in bash on POSIX-like systems
Date: Fri, 5 Apr 2013 12:49:10 -0500

> See the `-f' option to ln.

So I did some experimentation, and it is not sufficient to simply use the
-f option to ln to update bookmarks
$ ln -s /bin foo
# foo -> /bin/
$ ln -sf /etc foo
ln: failed to create symbolic link `rot/etc': Permission denied

You also need to use the -n option to prevent dereferencing
$ ln -sfn /etc foo
# foo -> /etc/

Once you've done that though, it works well.

On Fri, Apr 5, 2013 at 10:21 AM, Chris Down <chris@chrisdown.name> wrote:

> On 2013-04-04 20:51, Mara Kim wrote:
> > To get back on track. Note that this process is the same even if the
> 'work'
> > bookmark already exists, while doing things by hand would throw an error
> > without first removing the old link.
>
> See the `-f' option to ln.
>
> > Also you would need to remember to use cd -P every time if you wanted to
> keep
> > things unaliased.
>
> See `set -o physical'.
>
> Chris
>



-- 
M


reply via email to

[Prev in Thread] Current Thread [Next in Thread]