[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] add /etc/ contents to sys_lib_dlsearch_path_spec

From: Alexandre Duret-Lutz
Subject: Re: [PATCH] add /etc/ contents to sys_lib_dlsearch_path_spec
Date: Sat, 08 Nov 2003 12:57:52 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

>>> "Scott" == Scott James Remnant <address@hidden> writes:

 Scott> Ok, the third attempt at this bit of functionality.  I think I've got
 Scott> the possible formats correct, so this will append every
 Scott> directory found there to sys_lib_dlsearch_path_spec.
 Scott> +  if test -f /etc/; then
 Scott> +    sys_lib_dlsearch_path_spec="/lib /usr/lib "\
 Scott> +       `$SED -e 's/=[^=]*$//' -e 's/[:,        ]/ /g' /etc/`
 Scott> +  fi

Does this really work?  To me this look like a call to value of
  `$SED -e 's/=[^=]*$//' -e 's/[:,      ]/ /g' /etc/`,
with sys_lib_dlsearch_path_spec="/lib /usr/lib " put in the environment.

It indeed outputs
  sh: /usr/X11R6/lib: is a directory
Perhaps you shouldn't put spaces between the closing " and the opening `.

Also it seems to me that
   /lib=libc6 /lib5=libc5
is valid syntax, but your sed command will output it
   /lib=libc6 /lib5
Alexandre Duret-Lutz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]