aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1995-08-06 19:35:33 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1995-08-06 19:35:33 +0000
commit78e1fb6090b0c284ccbbb7ae6c82edc0dc974a77 (patch)
tree159d96b1fdd67c770298cb73e9134877da44523b /bin
parent78f1a844fbd79cb8d12bfb1454db7559b86c2216 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/sh/options.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/sh/options.c b/bin/sh/options.c
index 038ae5f9470e..92e04caa25bd 100644
--- a/bin/sh/options.c
+++ b/bin/sh/options.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: options.c,v 1.2 1994/09/24 02:58:04 davidg Exp $
+ * $Id: options.c,v 1.3 1995/05/30 00:07:21 rgrimes Exp $
*/
#ifndef lint
@@ -374,12 +374,11 @@ atend:
q++;
}
if (*++q == ':') {
- if (*p == '\0' && (p = *shellparam.optnext) == NULL) {
+ if (*p == '\0' && (p = *shellparam.optnext++) == NULL) {
out1fmt("No arg for -%c option\n", c);
c = '?';
goto out;
}
- shellparam.optnext++;
setvar("OPTARG", p, 0);
p = NULL;
}