"郑文辉(Techlive Zheng)" writes:
[...]
> I think I found the cause of my problem, it turns out I am using an
> very old /etc/profile.
That should be rare. I however, found some of the daemon scripts
written with #!/bin/sh but sources /etc/rc.d/functions. That
shouldn't make sense, and I think I
2012/3/20 Tom Gundersen :
> 2012/3/20 郑文辉(Techlive Zheng) :
>> But 'ls -l /bin/sh', shows that sh is a symlink to bash, but why it
>> behaves so differently?
>>
>>lrwxrwxrwx 1 root root 4 2011-11-23 14:08 /bin/sh -> bash
>
> When called as "/bin/sh", bash works in compatibility mode.
> Initscri
2012/3/20 郑文辉(Techlive Zheng) :
> But 'ls -l /bin/sh', shows that sh is a symlink to bash, but why it
> behaves so differently?
>
> lrwxrwxrwx 1 root root 4 2011-11-23 14:08 /bin/sh -> bash
When called as "/bin/sh", bash works in compatibility mode.
Initscripts only support bash being called as
2012/2/18 郑文辉(Techlive Zheng) :
> 2012/2/18 大熊 :
>> 在 2012年2月17日 下午10:32,郑文辉(Techlive Zheng) 写道:
>>>
>>> As I mentioned before, same problem in my /etc/bash_completion.d/git
>>> happend some tiem ago, now it is gone, because git bash_completion
>>> does not contain "done < <(*)" syntax any more.
>>
2012/2/18 大熊 :
> 在 2012年2月17日 下午10:32,郑文辉(Techlive Zheng) 写道:
>>
>> As I mentioned before, same problem in my /etc/bash_completion.d/git
>> happend some tiem ago, now it is gone, because git bash_completion
>> does not contain "done < <(*)" syntax any more.
>>
>> Also, as the first mail submiter an
在 2012年2月17日 下午10:32,郑文辉(Techlive Zheng) 写道:
>
> As I mentioned before, same problem in my /etc/bash_completion.d/git
> happend some tiem ago, now it is gone, because git bash_completion
> does not contain "done < <(*)" syntax any more.
>
> Also, as the first mail submiter and I are both Chinese. I
On 2012-02-17 at 19:00 +0200, Mantas Mikulėnas wrote:
> Commands in a pipe would be executed using subshells, so any
> changes the 'while' loop makes to variables would be lost when
> the subshell exited.
I wasn't aware of this. I guess I was lucky I didn't run into a
problem with this in all my
On 2012-02-17 18:07, Sebastian Schwarz wrote:
> On 2012-02-17 at 12:03 +0100, Lukas Fleischer wrote:
>> "done < $(foo)" isn't the same thing as "done < <(foo)".
>
> Just out of curiosity: in unmount_all() in /etc/rc.d/functions
> this is used:
>
> while read -r target fstype options; do
>
On 2012-02-17 at 12:03 +0100, Lukas Fleischer wrote:
> "done < $(foo)" isn't the same thing as "done < <(foo)".
Just out of curiosity: in unmount_all() in /etc/rc.d/functions
this is used:
while read -r target fstype options; do
...
done < <(findmnt -mrunRo TARGET,FSTYPE,OPTIONS /
As I mentioned before, same problem in my /etc/bash_completion.d/git
happend some tiem ago, now it is gone, because git bash_completion
does not contain "done < <(*)" syntax any more.
Also, as the first mail submiter and I are both Chinese. Is there any
chance that may be the locale caused this? I
2012/2/17 Lukas Fleischer :
> On Fri, Feb 17, 2012 at 05:58:31PM +0800, 郑文辉(Techlive Zheng) wrote:
>> 2012/2/17 Lukas Fleischer :
>> > On Fri, Feb 17, 2012 at 05:32:33PM +0800, 大熊 wrote:
>> >> 在 2012年2月17日 下午2:57,Lukas Fleischer 写道:
>> >>
>> >> > On Fri, Feb 17, 2012 at 12:35:03PM +0800, 郑文辉(Techli
My default shell is bash.But I am not sure which shell it is using or
under which mode of the bash while the system is starting.How to
ensure that?
2012/2/17 SanskritFritz :
> On Fri, Feb 17, 2012 at 12:18 PM, Lukas Fleischer
> wrote:
>>> a) You're not using bash (e.g. running rc.d(8) in sh(1)/$w
I can confirm that all my daemon script begin with "#!/bin/bash" by
runing `cd /etc/rc.d;find . -type f | xargs head -1 *`.
2012/2/17 Lukas Fleischer :
> On Fri, Feb 17, 2012 at 03:03:21PM +0100, SanskritFritz wrote:
>> On Fri, Feb 17, 2012 at 12:18 PM, Lukas Fleischer
>> wrote:
>> >> a) You're n
On Fri, Feb 17, 2012 at 03:03:21PM +0100, SanskritFritz wrote:
> On Fri, Feb 17, 2012 at 12:18 PM, Lukas Fleischer
> wrote:
> >> a) You're not using bash (e.g. running rc.d(8) in sh(1)/$whatever).
> >> b) You built bash manually and disabled process substitution support.
> >> c) You're running bas
On Fri, Feb 17, 2012 at 3:03 PM, SanskritFritz wrote:
> On Fri, Feb 17, 2012 at 12:18 PM, Lukas Fleischer
> wrote:
>>> a) You're not using bash (e.g. running rc.d(8) in sh(1)/$whatever).
>>> b) You built bash manually and disabled process substitution support.
>>> c) You're running bash in POSIX
On Fri, Feb 17, 2012 at 12:18 PM, Lukas Fleischer
wrote:
>> a) You're not using bash (e.g. running rc.d(8) in sh(1)/$whatever).
>> b) You built bash manually and disabled process substitution support.
>> c) You're running bash in POSIX mode.
>> d) Something else happened.
>
> e) Someone hacked int
On Fri, Feb 17, 2012 at 12:03:24PM +0100, Lukas Fleischer wrote:
> On Fri, Feb 17, 2012 at 05:58:31PM +0800, 郑文辉(Techlive Zheng) wrote:
> > 2012/2/17 Lukas Fleischer :
> > > On Fri, Feb 17, 2012 at 05:32:33PM +0800, 大熊 wrote:
> > >> 在 2012年2月17日 下午2:57,Lukas Fleischer 写道:
> > >>
> > >> > On Fri, Fe
On Fri, Feb 17, 2012 at 05:58:31PM +0800, 郑文辉(Techlive Zheng) wrote:
> 2012/2/17 Lukas Fleischer :
> > On Fri, Feb 17, 2012 at 05:32:33PM +0800, 大熊 wrote:
> >> 在 2012年2月17日 下午2:57,Lukas Fleischer 写道:
> >>
> >> > On Fri, Feb 17, 2012 at 12:35:03PM +0800, 郑文辉(Techlive Zheng) wrote:
> >> > > 2012/2/17
2012/2/17 Lukas Fleischer :
> On Fri, Feb 17, 2012 at 05:32:33PM +0800, 大熊 wrote:
>> 在 2012年2月17日 下午2:57,Lukas Fleischer 写道:
>>
>> > On Fri, Feb 17, 2012 at 12:35:03PM +0800, 郑文辉(Techlive Zheng) wrote:
>> > > 2012/2/17 大熊 :
>> > > > No matter I manual start any a daemon, I always see a error shown
On Fri, Feb 17, 2012 at 05:32:33PM +0800, 大熊 wrote:
> 在 2012年2月17日 下午2:57,Lukas Fleischer 写道:
>
> > On Fri, Feb 17, 2012 at 12:35:03PM +0800, 郑文辉(Techlive Zheng) wrote:
> > > 2012/2/17 大熊 :
> > > > No matter I manual start any a daemon, I always see a error shown on
> > > > console:
> > > >
> > >
在 2012年2月17日 下午2:57,Lukas Fleischer 写道:
> On Fri, Feb 17, 2012 at 12:35:03PM +0800, 郑文辉(Techlive Zheng) wrote:
> > 2012/2/17 大熊 :
> > > No matter I manual start any a daemon, I always see a error shown on
> > > console:
> > >
> > > /etc/rc.d/functions: line 506: syntax error near unexpected token
On Fri, Feb 17, 2012 at 12:35:03PM +0800, 郑文辉(Techlive Zheng) wrote:
> 2012/2/17 大熊 :
> > No matter I manual start any a daemon, I always see a error shown on
> > console:
> >
> > /etc/rc.d/functions: line 506: syntax error near unexpected token `('
> > /etc/rc.d/functions: line 506: `done
2012/2/17 大熊 :
> No matter I manual start any a daemon, I always see a error shown on
> console:
>
> /etc/rc.d/functions: line 506: syntax error near unexpected token `('
> /etc/rc.d/functions: line 506: `done < <(findmnt -mrunRo
> TARGET,FSTYPE,OPTIONS /)
>
> But it seem that the daemon ca
23 matches
Mail list logo