Change echo
to printf
(read.sh)
This commit is contained in:
parent
7afb24a972
commit
0c8f49c535
3 changed files with 3 additions and 3 deletions
|
@ -1,3 +1,3 @@
|
||||||
read LINE </dev/tty
|
read LINE </dev/tty
|
||||||
echo -n $LINE
|
printf '%s' "$LINE"
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -68,7 +68,7 @@ function _readlineShell() {
|
||||||
// The quote (") is escaped by node before parsed by shell. Then use ENV{Q}.
|
// The quote (") is escaped by node before parsed by shell. Then use ENV{Q}.
|
||||||
shellPath = 'cmd.exe';
|
shellPath = 'cmd.exe';
|
||||||
args = ['/V:ON', '/S', '/C', '%Q%' + __dirname + '\\read.bat%Q% >%Q%' + pathStdout +
|
args = ['/V:ON', '/S', '/C', '%Q%' + __dirname + '\\read.bat%Q% >%Q%' + pathStdout +
|
||||||
'%Q% & (ECHO !ERRORLEVEL!)>%Q%' + pathStatus + '%Q% & (ECHO 1)>%Q%' + pathDone + '%Q%'];
|
'%Q% & (echo !ERRORLEVEL!)>%Q%' + pathStatus + '%Q% & (echo 1)>%Q%' + pathDone + '%Q%'];
|
||||||
} else {
|
} else {
|
||||||
shellPath = '/bin/sh';
|
shellPath = '/bin/sh';
|
||||||
args = ['-c', '(' + shellPath + ' "' + __dirname + '/read.sh") >"' + pathStdout +
|
args = ['-c', '(' + shellPath + ' "' + __dirname + '/read.sh") >"' + pathStdout +
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "readline-sync",
|
"name": "readline-sync",
|
||||||
"description": "Synchronous Readline",
|
"description": "Synchronous Readline",
|
||||||
"version": "0.2.4",
|
"version": "0.2.5",
|
||||||
"homepage": "https://github.com/anseki/readline-sync",
|
"homepage": "https://github.com/anseki/readline-sync",
|
||||||
"author": {
|
"author": {
|
||||||
"name": "anseki"
|
"name": "anseki"
|
||||||
|
|
Loading…
Reference in a new issue