Skip to content

Input support in general #13

@jcguu95

Description

@jcguu95

Does cmd support interactive input?

1

For example, (cmd "/tmp/test.bash") does not prompt the user to enter a value, where tmp/test.bash is

#!/bin/bash

read x; echo "$x"; exit;

We can give it a string as input, but that isn't interactive enough if the end goal is to replace shells.

2

Another example arises when the system tries to read a password. For example,

CL> (cmd:cmd "sudo echo a")
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required

Using -S doesn't work either as the repl does not try to read a password.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions