Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: create a symlink generically..



On Wed, Apr 8, 2009 at 10:36 PM, Bryan Buecking wrote:
> On Wed, Apr 08, 2009 at 10:26:14PM -0400, Matt Wozniski wrote:
>> On Wed, Apr 8, 2009 at 8:53 PM, fREW Schmidt wrote:
>> > I figured out one way to do it, but there may be a better way:
>> >
>> > ln -s "$(pwd)/foo" ~/.foo
>>
>> Well, $PWD should probably be used instead of $(pwd) wherever possible.
>
> Or /bin/pwd if you want the real path.

If I understand what you mean, you should be using "pwd -r" there...
No reason to fork for that.

~Matt



Messages sorted by: Reverse Date, Date, Thread, Author