[前][次][番号順一覧][スレッド一覧]

ruby-changes:23982

From: akr <ko1@a...>
Date: Mon, 11 Jun 2012 21:38:12 +0900 (JST)
Subject: [ruby-changes:23982] akr:r36033 (trunk): add comment about meta characters.

akr	2012-06-11 21:37:55 +0900 (Mon, 11 Jun 2012)

  New Revision: 36033

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36033

  Log:
    add comment about meta characters.

  Modified files:
    trunk/process.c

Index: process.c
===================================================================
--- process.c	(revision 36032)
+++ process.c	(revision 36033)
@@ -1847,6 +1847,30 @@
         char *p;
         int has_meta = 0;
         int has_nonspace = 0;
+        /*
+         * meta characters:
+         *
+         * *    Pathname Expansion
+         * ?    Pathname Expansion
+         * {}   Grouping Commands
+         * []   Pathname Expansion
+         * <>   Redirection
+         * ()   Grouping Commands
+         * ~    Tilde Expansion
+         * &    AND Lists, Asynchronous Lists
+         * |    OR Lists, Pipelines
+         * \    Escape Character
+         * $    Parameter Expansion
+         * ;    Sequential Lists
+         * '    Single-Quotes
+         * `    Command Substitution
+         * "    Double-Quotes
+         * \n   Lists
+         *
+         * #    Comment
+         * =    Assignment preceding command name
+         * %    (used in Parameter Expansion)
+         */
         for (p = RSTRING_PTR(prog); *p; p++) {
             if (!has_nonspace && *p != ' ' && *p != '\t')
                 has_nonspace = 1;

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]