From attila.lendvai at gmail.com Sun Oct 24 15:20:01 2010 From: attila.lendvai at gmail.com (Attila Lendvai) Date: Sun, 24 Oct 2010 17:20:01 +0200 Subject: [xcvb-devel] make test Message-ID: in this function in runme.zsh: check_asdf_setup () { CONFIGURED_CL_LAUNCH_FLAGS="$(make show-config $ENV | grep "^CL_LAUNCH_FLAGS=" | cut -d= -f2-)" for i in asdf-dependency-grovel cl-launch closer-mop command-line-arguments poiu ; do cl-launch $=CONFIGURED_CL_LAUNCH_FLAGS -i \ "(cl-launch::quit (if (asdf:find-system :$i nil) 0 1))" || abort "Couldn't locate ASDF system $i. Make sure your configure.mk has it." done } with the value: CL_LAUNCH_FLAGS += --lisp '${LISP} sbcl clisp ccl' i get some zsh quoting headache: +check_asdf_setup:1> CONFIGURED_CL_LAUNCH_FLAGS=+check_asdf_setup:1> cut '-d=' -f2- +check_asdf_setup:1> CONFIGURED_CL_LAUNCH_FLAGS=+check_asdf_setup:1> grep '^CL_LAUNCH_FLAGS=' +check_asdf_setup:1> CONFIGURED_CL_LAUNCH_FLAGS=' --lisp '\''sbcl sbcl clisp ccl'\'' --source-registry /home/alendvai/workspace//:/usr/share/common-lisp/source// --verbose' +check_asdf_setup:2> i=asdf-dependency-grovel +check_asdf_setup:3> cl-launch --lisp \''sbcl' sbcl clisp 'ccl'\' --source-registry /home/alendvai/workspace//:/usr/share/common-lisp/source// --verbose -i '(cl-launch::quit (if (asdf:find-system :asdf-dependency-grovel nil) 0 1))' Unrecognized command line argument 'sbcl' cl-launch.sh 3.004 -- shell wrapper generator for Common Lisp software wasted an hour trying to get rid of those extra quotes, but i gave up and simply changed my config to kludge the issue: CL_LAUNCH_FLAGS += --lisp '${LISP}' $ zsh --version zsh 4.3.10 (x86_64-unknown-linux-gnu) on Ubuntu 10.10 hth, -- ?attila From fahree at gmail.com Sun Oct 24 20:43:09 2010 From: fahree at gmail.com (=?ISO-8859-1?Q?Far=E9?=) Date: Sun, 24 Oct 2010 13:43:09 -0700 Subject: [xcvb-devel] make test In-Reply-To: References: Message-ID: I would say "then don't use that CL_LAUNCH_FLAGS". Proper quoting between Make and Shell is HORROR. When you control the environment, there is no point is having more that one option for the lisps, anyway. How would you do it? [ Fran?ois-Ren? ?VB Rideau | Reflection&Cybernethics | http://fare.tunes.org ] Nature, to be commanded, must be obeyed. ? Francis Bacon On 24 October 2010 08:20, Attila Lendvai wrote: > in this function in runme.zsh: > > > check_asdf_setup () { > ?CONFIGURED_CL_LAUNCH_FLAGS="$(make show-config $ENV | grep > "^CL_LAUNCH_FLAGS=" | cut -d= -f2-)" > ?for i in asdf-dependency-grovel cl-launch closer-mop > command-line-arguments poiu ; do > ? ?cl-launch $=CONFIGURED_CL_LAUNCH_FLAGS -i \ > ? ?"(cl-launch::quit (if (asdf:find-system :$i nil) 0 1))" || > ? ?abort "Couldn't locate ASDF system $i. Make sure your configure.mk has it." > ?done > } > > > with the value: > > > CL_LAUNCH_FLAGS += --lisp '${LISP} sbcl clisp ccl' > > > i get some zsh quoting headache: > > > +check_asdf_setup:1> CONFIGURED_CL_LAUNCH_FLAGS=+check_asdf_setup:1> > cut '-d=' -f2- > +check_asdf_setup:1> CONFIGURED_CL_LAUNCH_FLAGS=+check_asdf_setup:1> > grep '^CL_LAUNCH_FLAGS=' > +check_asdf_setup:1> CONFIGURED_CL_LAUNCH_FLAGS=' --lisp '\''sbcl sbcl > clisp ccl'\'' --source-registry > /home/alendvai/workspace//:/usr/share/common-lisp/source// --verbose' > +check_asdf_setup:2> i=asdf-dependency-grovel > +check_asdf_setup:3> cl-launch --lisp \''sbcl' sbcl clisp 'ccl'\' > --source-registry > /home/alendvai/workspace//:/usr/share/common-lisp/source// --verbose > -i '(cl-launch::quit (if (asdf:find-system :asdf-dependency-grovel > nil) 0 1))' > Unrecognized command line argument 'sbcl' > cl-launch.sh 3.004 -- shell wrapper generator for Common Lisp software > > > wasted an hour trying to get rid of those extra quotes, but i gave up > and simply changed my config to kludge the issue: > > CL_LAUNCH_FLAGS += --lisp '${LISP}' > > > $ zsh --version > zsh 4.3.10 (x86_64-unknown-linux-gnu) > > on Ubuntu 10.10 >