home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!quality.hal.COM!not-for-mail
- From: sankar@hal.COM (Sankar Bandy)
- Newsgroups: comp.lang.perl
- Subject: perl does not treat # inside `` properly
- Message-ID: <1957stINNibg@quality.hal.COM>
- Date: 15 Sep 92 17:52:29 GMT
- Organization: HaL Computer Systems, Inc.
- Lines: 39
- NNTP-Posting-Host: quality.hal.com
-
-
- The perl language is supposed to provide shell syntax equivalence
- within the `` characters. However I have seen that the # character
- even within `` is not treated equivalently. e.g.
-
- [sankar@quality]/users/halserv3-2/sankar/bin{156}cat $CVSROOT/CVSROOT/modules |grep - | grep -v #
- world -a .
- CVSROOT -i mkmodules CVSROOT
- modules -i mkmodules CVSROOT modules
- loginfo -i mkmodules CVSROOT loginfo
- commitinfo -i mkmodules CVSROOT commitinfo
- rcsinfo -i mkmodules CVSROOT rcsinfo
- editinfo -i mkmodules CVSROOT editinfo
- testmod -a testdir/new
- bigmod -a testdir/new2
- [sankar@quality]/users/halserv3-2/sankar/bin{157}%
-
- However within perl the same thing does not work :
- DB<11> p `cat $cvsroot/CVSROOT/modules |grep - | grep -v #`
-
- DB<12> p `cat $cvsroot/CVSROOT/modules |grep -`
- # key -a aliases...
- # -i prog Run "prog" on "cvs commit" from top-level of module.
- # -o prog Run "prog" on "cvs checkout" of module.
- # -t prog Run "prog" on "cvs rtag" of module.
- # -u prog Run "prog" on "cvs update" of module.
- # -d dir Place module in directory "dir" instead of module name.
- # -l Top-level directory only -- do not recurse.
- # The "-a" option specifies an alias. An alias is interpreted as if
- # everything on the right of the "-a" had been typed on the command line.
- world -a .
- CVSROOT -i mkmodules CVSROOT
- modules -i mkmodules CVSROOT modules
- loginfo -i mkmodules CVSROOT loginfo
- commitinfo -i mkmodules CVSROOT commitinfo
- rcsinfo -i mkmodules CVSROOT rcsinfo
- editinfo -i mkmodules CVSROOT editinfo
- testmod -a testdir/new
- bigmod -a testdir/new2
-