Replify
Dev tools
shell scripting
SHOW HN2016
How HN took it
2 positive, 4 neutral or asking, 1 mixed, 2 critical, out of 9 comments about the project. Thread score 0.00.
Idea: 2 for, 2 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Cool and neat trick
From 2 comments
This is pretty cool!
AlphaWeaver on HNNeat trick - the only change I made is to exit the while loop by typing "exit". That way the enter key runs the command with no arguments, and you can exit with control+c or by…
seibelj on HN
Could enhance Docker CLI experience
From 1 comment
This could significantly enhance my Docker in the CLI user experience.
vitoc on HN
Objections
Not very useful without history and related features
From 1 comment
Here is my version: ``` #!/bin/bash printf "REPL for %s\n" "$@" notblank() { [ $# -gt 0 ] } while true ; do printf "%s> " "$@" read -r || break; notblank $REPLY || continue; eval…
kazinator on HN
Should be a Bash feature rather than a standalone script
From 1 comment
Here is my version: ``` #!/bin/bash printf "REPL for %s\n" "$@" notblank() { [ $# -gt 0 ] } while true ; do printf "%s> " "$@" read -r || break; notblank $REPLY || continue; eval…
kazinator on HN
Ruby or other languages are better suited for growing feature sets
From 1 comment
It's likely that with the feature set growing, a version that uses a slightly more advanced language would be easier to maintain and have less "traps" than the bash version...
jbbarth on HN
Requests
Add command history and readline-style features
From 2 comments
Here is my version: ``` #!/bin/bash printf "REPL for %s\n" "$@" notblank() { [ $# -gt 0 ] } while true ; do printf "%s> " "$@" read -r || break; notblank $REPLY || continue; eval…
kazinator on HNRelated: rlwrap adds some of readline's features like history to REPLs that don't have those things out of the box.
tlrobinson on HN
Store previous results in variables
From 1 comment
It's only a REPL in the most trivial sense if it doesn't remember variables or results between commands. I suppose it would be easy to store the output in $LAST or $R1, $R2, ...,…
continuational on HN
Exit with a word instead of an empty line
From 1 comment
Neat trick - the only change I made is to exit the while loop by typing "exit". That way the enter key runs the command with no arguments, and you can exit with control+c or by…
seibelj on HN
Alternatives named
rlwrap
From 3 comments
Maybe using rlwrap command would help with the autocompletion and history?
mateuszf on HNhttps://github.com/hanslub42/rlwrap EDIT: beat to the punch, should've refreshed.
Jtsummers on HNRelated: rlwrap adds some of readline's features like history to REPLs that don't have those things out of the box.
tlrobinson on HN
With (mchav/With)
From 1 comment
I just found out about a very similar command [1] that has more features. [1] https://github.com/mchav/With
danielrw7 on HN
defunkt/repl (Ruby)
From 1 comment
Another generic `repl` utility, this one in ruby: https://github.com/defunkt/repl
unfletch on HN
shrepl (POSIX shell port)
From 1 comment
i actually ported this over to POSIX shell a few years back: https://github.com/joh6nn/shrepl afaik, it will work just about anywhere you can invoke a shell (i haven't tested it…
joh6nn on HN