> $ ln $(stat Soft_Link_to_f1 | grep '^  File:' | cut -d "\`" -f3 | \
>    cut -d "'" -f1) Hard_Link_to_f1

> OK It's still a line and a half, but perhaps easier to understand.

Same principle though, ie nothing really different, and also conks out
on spaces etc. With a bit more work one could make a robust script out
of it though.

> It begs the question: Is the current behaviour of ln a bug or a feature?

Not a bug, as it does what it's told (clone directory entry). Feature
probably, though I haven't used it in the past. Design bug yes, as it
doesn't have a dereference option, like most/all the other GNU tools
seem to have these days, and as it doesn't allow to get a valid job
done (neither does GNU cp, which looks like a fancy superset of ln).

Volker

-- 
Volker Kuhlmann                 is possibly list0570 with the domain in header
http://volker.dnsalias.net/             Please do not CC list postings to me.

Reply via email to