We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pacman -Sy expect
cat /usr/bin/unbuffer
#!/bin/sh # -*- tcl -*- # The next line is executed by /bin/sh, but not tcl \ exec tclsh "$0" ${1+"$@"} package require Expect # -*- tcl -*- # Description: unbuffer stdout of a program # Author: Don Libes, NIST if {[string compare [lindex $argv 0] "-p"] == 0} { # pipeline set stty_init "-echo" eval [list spawn -noecho] [lrange $argv 1 end] close_on_eof -i $user_spawn_id 0 interact { eof { # flush remaining output from child expect -timeout 1 -re .+ return } } } else { set stty_init "-opost" set timeout -1 eval [list spawn -noecho] $argv expect exit [lindex [wait] 3] }
As you can see tclsh is searched from PATH so running this script in other environments would break:
tclsh
PATH
can't find package Expect
This is in all shell scripts installed by the expect package.
expect
- exec tclsh "$0" ${1+"$@"} + exec /usr/bin/tclsh "$0" ${1+"$@"}
MSYS_NT-10.0-26100
Maybe. I haven't gotten familiar with packaging yet.
The text was updated successfully, but these errors were encountered:
Your proposed fix looks good.
Sorry, something went wrong.
No branches or pull requests
Description / Steps to reproduce the issue
pacman -Sy expect
cat /usr/bin/unbuffer
As you can see
tclsh
is searched fromPATH
so running this script in other environments would break:This is in all shell scripts installed by the
expect
package.Expected behavior
Actual behavior
can't find package Expect
Verification
Windows Version
MSYS_NT-10.0-26100
Are you willing to submit a PR?
Maybe. I haven't gotten familiar with packaging yet.
The text was updated successfully, but these errors were encountered: