News for hackers. Stuff that matters.
Re:Why does OpenBSD still include Perl in its base installat... by rwmj on Saturday May 30, 2020 @10:11AM (#23361299)
Python's subprocess is a bit more clumsy than Perl's built in features for running commands, with the proviso that running commands in Perl is best described as "idiomatic". Maybe if you didn't learn it 20 years ago like I did you'd have a hard time with its irregularity and colloquialisms.

Is there any non-shell scripting language that makes it as easy as shell to run external commands, redirect I/O etc.? I don't know of any. (Perhaps that is the very definition of a shell.)

Re:Why does OpenBSD still include Perl in its base installat... by lmm on Saturday May 30, 2020 @10:54AM (#23361602)
TCL ships with tclsh which is regular TCL (so a first-class programming language) but allows you to invoke external commands as though they were functions (so arguably is a shell in your sense, though I wouldn't advise using it as your login shell).
Re:Why does OpenBSD still include Perl in its base installat... by jasonhansel on Saturday May 30, 2020 @10:31AM (#23361438)
Agreed. I really want a language that makes it easy to run subprocesses and do other Unix/shell magic, while being more straightforward and modern than Perl.

I think a good way of doing this would be to make a shell that has more expressive power and a clearer syntax.

Re:Why does OpenBSD still include Perl in its base installat... by jhgb on Saturday May 30, 2020 @01:34PM (#23362937)
> Is there any non-shell scripting language that makes it as easy as shell to run external commands, redirect I/O etc.?

Would Scsh count?

Re:Why does OpenBSD still include Perl in its base installat... by Tyr42 on Saturday May 30, 2020 @10:49AM (#23361576)
Ruby uses the same sorta commands as perl does I think.
Re:Why does OpenBSD still include Perl in its base installat... by ma2rten on Saturday May 30, 2020 @10:52AM (#23361591)
This is one of the few things really missing from python. I am wondering how easy it would be to write a PEP for an outsider.
Re:Why does OpenBSD still include Perl in its base installat... by lmns on Saturday May 30, 2020 @11:44AM (#23361914)
subprocess.run() isn't too bad.