[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] `daemons/rc.sh' and `daemons/runsystem.sh' depending on Bash
From: |
Roland McGrath |
Subject: |
Re: [PATCH] `daemons/rc.sh' and `daemons/runsystem.sh' depending on Bash. |
Date: |
Thu, 3 Jan 2002 20:18:46 -0500 (EST) |
> The -c option makes sure all nodes exist, even if the glob is failing. So
> you might end up with empty files like '*' or '.??*'.
It was obvious (to me) what this code is doing. But I will not accept it.
Creating files called "*" on disk and then removing them, just to be lazy
in your shell programming, is too ugly for me to handle.
> local variables are not supported by POSIX. We get away with using a
> recursive function anyway because it is mostly tail recursive.
Oy. Way too fragile for my taste. Acceptable kludges would be
saving/restoring the caller's value in the function, or forking a subshell
(i.e. put ( and ) around the recursive call).