Displaying 1 result from an estimated 1 matches for "path_old".
Did you mean:
path_id
2011 Nov 08
3
Bug#648029: xen-utils-common: /usr/lib/xen-common/bin/xen-toolstack (and thus /usr/sbin/xm) works with bash, but not dash
...++ TOOLSTACK=/usr/lib/xen-4.1/bin/xm
+ RET=0
+ [ 0 -eq 0 ]
-+ basename /usr/sbin/xm
++ basename /usr/lib/xen-4.1/bin/xm
+ [ xm != xm ]
-+ exec /usr/sbin/xm
++ exec /usr/lib/xen-4.1/bin/xm
Plainly, the idiom "PATH=FOO command -v bar" does not work with
dash. This seems to work:
local PATH_old
PATH_old="${PATH}"
PATH=FOO
command -v bar
PATH="${PATH_old}"
Or maybe more devious (but untested):
local PATH
PATH=FOO
command -v bar
-- System Information:
Debian Release: 6.0.3
APT prefers stable
APT policy: (500, 'stable'), (400, 'testing'), (30...