This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Absolute srcdir


>>>>> "Ralf" == Ralf Corsepius <corsepiu@faw.uni-ulm.de> writes:

Ralf> What about this fragment from acgeneral.m4 (~line 4407):

Ralf>         [[/\\$]]* | ?:[[/\\]]*) INSTALL="$ac_given_INSTALL" ;;

Ralf> There, [[/\\$]]* is used instead of [[/\\]]*.

For variables which can contain ${prefix} and such.

| ~tig % cat /tmp/foo.sh
| #! /bin/sh
| 
| case "/foo" in
|  [$/\\]*) echo 1;;
| esac
| 
| case "/foo" in
|  [\\/]*) echo 2;;
| esac
| 
| case "\foo" in
|  [/\\$]*) echo 3;;
| esac
| 
| case "\foo" in
|  [\\/$]*) echo 4;;
| esac

~tig % bash /tmp/foo.sh
2
3
4

~tig % zsh /tmp/foo.sh
1
2
3
4

Seems like we should use `[\\/]' and `[\\/$]'.

Ralf> Seems like another workaround to this issue already crept into
Ralf> autoconf to me.

Parse error :)  The `to me' matches `Seems, or `creep'?

        Akim


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]