Talk:Shell one-liner: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
Line 2: Line 2:
Which shell? Normally the programming language does not specify existence of any shells or others environmental tasks. What happens if the program is run as an [[OS]] driver, a system service, or without any [[OS]] at all on the bare board? Otherwise, how does this task differ from [[Execute a System Command]]? Does spawning a shell qualify? --[[User:Dmitry-kazakov|Dmitry-kazakov]] 13:15, 26 August 2008 (UTC)
Which shell? Normally the programming language does not specify existence of any shells or others environmental tasks. What happens if the program is run as an [[OS]] driver, a system service, or without any [[OS]] at all on the bare board? Otherwise, how does this task differ from [[Execute a System Command]]? Does spawning a shell qualify? --[[User:Dmitry-kazakov|Dmitry-kazakov]] 13:15, 26 August 2008 (UTC)
:I guess we could restrict it to mean systems that have command line shells such as bash/tcsh/... on Unix systems, cmd.exe on Windows, or ''[http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html posix-like]'' shells. Maybe we should state what shell the command line is compatible with? --[[User:Paddy3118|Paddy3118]] 13:55, 26 August 2008 (UTC)
:I guess we could restrict it to mean systems that have command line shells such as bash/tcsh/... on Unix systems, cmd.exe on Windows, or ''[http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html posix-like]'' shells. Maybe we should state what shell the command line is compatible with? --[[User:Paddy3118|Paddy3118]] 13:55, 26 August 2008 (UTC)

The examples on the page seem to indicate that the task is running a line of the programming language ''from'' a shell; and not doing anything of the shell from the programming language. I am not sure exactly what you are allowed to use; because the OCaml example just echoes a string and pipes it into the ocaml program. You can do that with any language with an interpreter that reads from standard input, so it seems kind of trivial. --[[User:Spoon!|Spoon!]] 19:25, 26 August 2008 (UTC)

Revision as of 19:25, 26 August 2008

Which Shell?

Which shell? Normally the programming language does not specify existence of any shells or others environmental tasks. What happens if the program is run as an OS driver, a system service, or without any OS at all on the bare board? Otherwise, how does this task differ from Execute a System Command? Does spawning a shell qualify? --Dmitry-kazakov 13:15, 26 August 2008 (UTC)

I guess we could restrict it to mean systems that have command line shells such as bash/tcsh/... on Unix systems, cmd.exe on Windows, or posix-like shells. Maybe we should state what shell the command line is compatible with? --Paddy3118 13:55, 26 August 2008 (UTC)

The examples on the page seem to indicate that the task is running a line of the programming language from a shell; and not doing anything of the shell from the programming language. I am not sure exactly what you are allowed to use; because the OCaml example just echoes a string and pipes it into the ocaml program. You can do that with any language with an interpreter that reads from standard input, so it seems kind of trivial. --Spoon! 19:25, 26 August 2008 (UTC)