On 05/16/2012 03:01 AM, Peng Yu wrote: > Hi, > > I don't see an option of 'ln -s' that prompts some error if the target > does not exist. In case that I miss anything, could anybody who are > more familar with ln confirm with me? Thanks!
ln will create a dangling like without error. If that's not what you want you can: [ -e "$target" ] && ln -s "$target" linkname cheers, Pádraig.
