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
Certain uses of grep appear to add extra newlines.
Ex:
Try something like this:
shx ls '~/Music/iTunes' | shx grep 'iTunes'
It acts as expected, producing strings with a single \n for each line.
But
shx ls '~/Music/iTunes' | shx grep '-v' 'iTunes'
appears to add a second newline at the end of the set of strings.
This can be explicitly seen in node:
var sh = require('shelljs')
// terminates with a single newline
sh.ls('~/Music/iTunes').grep('iTunes')
// terminates with two newlines
sh.ls('~/Music/iTunes').grep('-v', 'iTunes')
The text was updated successfully, but these errors were encountered:
Certain uses of grep appear to add extra newlines.
Ex:
Try something like this:
It acts as expected, producing strings with a single \n for each line.
But
appears to add a second newline at the end of the set of strings.
This can be explicitly seen in node:
The text was updated successfully, but these errors were encountered: