Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command shell examples in README.win32 #1742

Closed
p5pRT opened this issue Apr 3, 2000 · 2 comments
Closed

command shell examples in README.win32 #1742

p5pRT opened this issue Apr 3, 2000 · 2 comments

Comments

@p5pRT
Copy link

p5pRT commented Apr 3, 2000

Migrated from rt.perl.org#2993 (status was 'resolved')

Searchable as RT2993$

@p5pRT
Copy link
Author

p5pRT commented Apr 3, 2000

From yardley@tanet.net

I'm not sure whether these "ought" to be reported as bugs or not,
especially #2 below. For all I know, this may now be correct
behavior.

I executed each of the below one-liners, which examples are included
in the README.win32 distributed with perl 5.6.0, in cmd.exe on
Win2000 Server Beta 3.

/acy

#===================================================================

Example #2​:

  This does the same​:
 
  perl -e "print \"\\\"\\\"\" "

REMARKS​: Under v5.6.0, this example fails with,

Backslash found where operator expected at -e line 1, near ""\\"\"
  (Missing operator before \?)
syntax error at -e line 1, near ""\\"\"
Execution of -e aborted due to compilation errors.

NOTE​: The example works correctly under v4.005_03.

#====================================================================

Example #6​:

  This pipes "foo" to the "less" pager and prints "bar" on the
  console​:

  perl -e "print 'foo'; print STDERR 'bar'" | less

REMARKS​: Under v5.005_03, this example fails with,

foo

But under v5.6.0, it prints

barfoo

NOTE​: I do not know whether or not this is correct behavior.
Perhaps, the pipe to STDERR should complete before the print to
STDOUT. Doesn't seem quite right to me, but ...

#====================================================================

Example #6​:

  This pipes "foo\nbar\n" to the less pager​:

  perl -le "print 'foo'; print STDERR 'bar'" 2>&1 | less

REMARKS​: Under v5.005_03, this example prints
foobar

But under v5.6.0, the example prints

barfoo

NOTE​: Again, I'm uncertain about the order, but, curiously, a print
to STDERR appears to complete and return before a print to STDOUT.
Is this correct behavior?

#====================================================================

@p5pRT
Copy link
Author

p5pRT commented Apr 3, 2000

From [Unknown Contact. See original ticket]

NOTE​: The example works correctly under v4.005_03.
  ^^^^^^^^^
Oops, make that v5.005_03.

/acy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant