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

21350 Enhance LibC with piping and the platform with running commands #893

Conversation

astares
Copy link
Member

@astares astares commented Feb 16, 2018

https://pharo.fogbugz.com/f/cases/21350/Enhance-LibC-with-piping-and-the-platform-with-running-commands

you can now write:

on Unix:

Smalltalk os runCommand: 'nautilus'.
Smalltalk os resultOfCommand: 'uname -s'

or on Windows

Smalltalk os runCommand: 'explorer'

or on Mac:

Smalltalk os runCommand: 'open .'

last = 16rFFFFFFFF ] whileFalse: [
s nextPut: (Character value: last)
].
self pipeClose: file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not pipe closing be inside ensure block?

Copy link
Contributor

@dionisiydk dionisiydk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@MarcusDenker MarcusDenker merged commit 27408ba into pharo-project:development Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants