can you make a small test case (like the previous /tmp/x => /tmp/g) that
shows the problem

I'm asking because the first thing I tried worked

On Wed, 22 May 2013 23:57:10 +0200 Irek Szczesniak wrote:
> Taken from an Illumos OS bug:
> ==============================
> I found cases where -f is not honored properly with ksh. I can't figure out 
> why.

> Processing ksh-overrides: ./src/scripts/mk-dist2101: process_pkgs1128:
> process_pkg732: process_pkg_line685: pkg_directive_link409: ln:
> ../../sbin/sh: cannot link to /tmp/DEYOS.out/mnt/usr/bin/sh [File
> exists]

> The source for this routine looks like this:

> ${X_LN} -sf "$1" "$2" || die "ln -sf $1 $2"

> Notably, X_LN evaluates to "ln".

> In my script, I was able to workaround this like this:

> ${X_LN} -sf "$1" "$2" 2> /dev/null || \\
>         ${E}/usr/bin/ln -sf "$1" "$2"  || die "ln -sf $1 $2"

> This is key, because I don't want to always execute the ln -- this
> script does a lot of these and it takes too long if I have to shell
> out all the time.
> ==============================

> Irek

_______________________________________________
ast-developers mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-developers

Reply via email to