make cols an alias for columns
authorJim Bloom <bloom@ucbvax.Berkeley.EDU>
Sat, 5 Apr 1986 02:24:27 +0000 (18:24 -0800)
committerJim Bloom <bloom@ucbvax.Berkeley.EDU>
Sat, 5 Apr 1986 02:24:27 +0000 (18:24 -0800)
SCCS-vsn: bin/stty/stty.c 5.4

usr/src/bin/stty/stty.c

index 7b0891c..0dd43d4 100644 (file)
@@ -11,7 +11,7 @@ char copyright[] =
 #endif not lint
 
 #ifndef lint
 #endif not lint
 
 #ifndef lint
-static char sccsid[] = "@(#)stty.c     5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)stty.c     5.4 (Berkeley) %G%";
 #endif not lint
 
 /*
 #endif not lint
 
 /*
@@ -282,7 +282,7 @@ char        **iargv;
                                goto done;
                        win.ws_row = atoi(*++argv);
                }
                                goto done;
                        win.ws_row = atoi(*++argv);
                }
-               if (eq("columns")) {
+               if (eq("cols") || eq("columns")) {
                        if (--argc == 0)
                                goto done;
                        win.ws_col = atoi(*++argv);
                        if (--argc == 0)
                                goto done;
                        win.ws_col = atoi(*++argv);