View Issue Details

IDProjectCategoryView StatusLast Update
0000141tcshgeneralpublic2011-09-04 17:33
ReporterMoritz Wilhelmy 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version6.17.00 
Target VersionFixed in Version 
Summary0000141: Aliases consisting of multiple lines are expanded in history
DescriptionRather complex example (sorry, I was unable to reproduce it with anything simpler I tried)

alias ci 'eval '\''if ( ! $?RCS_COMMITTER ) then \\
                        echo -n '\''Please enter your first name: '\'' \\
                        set RCS_COMMITTER = "$<" \\
                endif \\
                /usr/bin/ci -w"${RCS_COMMITTER}" '\'


When first run (with RCS_COMMITTER not being set), the history looks like this:
     1 23:34 ci
     2 23:34 history

When run again (RCS_COMMITTER set this time), the history looks like this:

     3 23:34 ci
     4 23:34 echo -n Please enter your first name:
     5 23:34 set RCS_COMMITTER = "$<"
     6 23:34 endif
     7 23:34 history
Additional InformationRelated thread on the mailing list: http://mx.gw.com/pipermail/tcsh/2011-September/004436.html
TagsNo tags attached.

Relationships

Activities

Moritz Wilhelmy

Moritz Wilhelmy

2011-09-04 17:33

reporter   ~0000225

It can be simplified like this:

alias ci eval \''if ( ! $?RCS_COMMITTER ) then \\
    echo -n Please enter your first name: \\
    set RCS_COMMITTER = $< \\
  endif \\
  /usr/bin/ci -w${RCS_COMMITTER}'\'

Which in turn probably means one can exclude the quotes as the root of the evil.

Issue History

Date Modified Username Field Change
2011-09-04 17:29 Moritz Wilhelmy New Issue
2011-09-04 17:33 Moritz Wilhelmy Note Added: 0000225