[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 6/6] use print or printf or cat as $ECHO (really)
From: |
Paolo Bonzini |
Subject: |
Re: [PATCH 6/6] use print or printf or cat as $ECHO (really) |
Date: |
Sat, 22 Nov 2008 15:07:24 +0100 |
User-agent: |
Thunderbird 2.0.0.18 (Macintosh/20081105) |
> IIUC then this code has two problems: first, it changes PATH and FPATH
> for any _AS_DETECT_SUGGESTED shell snippets expanded right after this
> one. Second, it uses an unsafe replacement path (this problem stems
> from before your patch).
Oops, I remembered that each snippet expanded to a subshell, but that's
only true of the entire suggested-tests.
> I propose two alternative patches to fix these issues. Both, as the
> code before the patch, assume that `test' is a built-in command. Yuck.
> The first patch further assumes that, since `test' is not a special
> built-in, the shell will take care to change the variables for the
> duration of the following command only. Do we have reason to believe
> this not to be portable?
If it works on Solaris...
Paolo
- Re: [PATCH 6/6] use printf as $ECHO, (continued)
- Re: [PATCH 6/6] use printf as $ECHO, Eric Blake, 2008/11/07
- Re: [PATCH 6/6] use printf as $ECHO, Paolo Bonzini, 2008/11/08
- Re: [PATCH 6/6] use printf as $ECHO, Ralf Wildenhues, 2008/11/09
- Re: [PATCH 6/6] use printf as $ECHO, Paolo Bonzini, 2008/11/10
- Re: [PATCH 6/6] use print or printf or cat as $ECHO, Paolo Bonzini, 2008/11/10
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Paolo Bonzini, 2008/11/10
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Ralf Wildenhues, 2008/11/10
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Paolo Bonzini, 2008/11/10
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Ralf Wildenhues, 2008/11/11
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Ralf Wildenhues, 2008/11/22
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really),
Paolo Bonzini <=
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Eric Blake, 2008/11/22
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Eric Blake, 2008/11/22
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Ralf Wildenhues, 2008/11/23
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Eric Blake, 2008/11/23
- Re: [PATCH 6/6] use print or printf or cat as $ECHO (really), Ralf Wildenhues, 2008/11/23
- Re: [PATCH 6/6] use print or printf or cat as $ECHO, Eric Blake, 2008/11/10
- Re: [PATCH 6/6] use printf as $ECHO, Eric Blake, 2008/11/10
- Re: [PATCH 6/6] use printf as $ECHO, Ralf Wildenhues, 2008/11/10
- Re: [PATCH 6/6] use printf as $ECHO, Sven Mascheck, 2008/11/10
- Re: [PATCH 6/6] use printf as $ECHO, Ralf Wildenhues, 2008/11/11