I haven't figured out your basename problem other than to observe that I can reproduce it on Solaris as well. "basename" and "/bin/basename" produced the same results, so the built-in and the program were alike. As far as your ACTUAL problem doing the symlinks is concerned, you can just OMIT the second argument of "ln -s TARGET LINK" and you will get the basename of TARGET as the name of the link. pete peterson GenRad, Inc. 7 Technology Park Drive Westford, MA 01886-0033 [EMAIL PROTECTED] or [EMAIL PROTECTED] +1-978-589-7478 (GenRad); +1-978-256-5829 (Home: Chelmsford, MA) +1-978-589-2088 (Closest FAX); +1-978-589-7007 (Main GenRad FAX) > To: [EMAIL PROTECTED] > From: Chris Abbey <[EMAIL PROTECTED]> > Subject: Re: basename in backticks > > At 18:28 10/22/00 +1000, Tony Nugent wrote: > >On Sat Oct 21 2000 at 18:47, Chris Abbey wrote: > > > ln -s $fil `basename $fil` > > > >Try it like this instead: > > > > ls -s $fil $(basename $fil) > > no difference. :( > > the real command (in case it matters) is: > find $r/$c/$d ! -type d -exec ln -s {} $(basename {}) \; > > > although you can demonstrate it with this: > find -exec echo `basename {}` \; > > I'm starting to suspect it's an issue with find... perhaps with the > choice of shell it's using for the -exec command, since as you point > out basename is a bash builtin. _______________________________________________ Redhat-devel-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-devel-list