You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/bin/sh handles redirects, so no need to implement your own processing.
If the function to send downloaded files as standard input is implemented, the string received with the -p option can be used as is.
Need to change commands for each environment. (/bin/sh for Linux and Mac, cmd for Windows)
The text was updated successfully, but these errors were encountered:
k-oizumi-abel
changed the title
Post-processing CMD of the installation command to accommodate redirection of results
Post-processing CMD of the install command to accommodate redirection of results
Aug 30, 2022
k-oizumi-abel
changed the title
Post-processing CMD of the install command to accommodate redirection of results
Post-processing CMD of the install command, accommodate redirection of results
Aug 30, 2022
k-oizumi-abel
changed the title
Post-processing CMD of the install command, accommodate redirection of results
Post-processing CMD of the install command to accommodate redirection of results
Aug 30, 2022
">" is not recognized as a redirect sign.
The deno.run command probably treats ">" as a string.
Proposals:
First draft
Pros
A single code can be used in a variety of environments.
Cons
Have to handle complex file names and redirects yourself. (>>, 2>>, 1>&2, etc.)
Second draft
If -p "cmd wc -c > /tmp/test.txt" is specified, start using /bin/sh as follows.
Pros
/bin/sh handles redirects, so no need to implement your own processing.
If the function to send downloaded files as standard input is implemented, the string received with the -p option can be used as is.
Cons
Need to change commands for each environment. (/bin/sh for Linux and Mac, cmd for Windows)
The text was updated successfully, but these errors were encountered: