Displaying 2 results from an estimated 2 matches for "not_there".
2009 Jan 13
3
Extracting Hash via Vector
Dear all,
Suppose I have a hash created with this
x <- list()
for (i in c('test', 'some', 'more')){
x[[i]] <- runif(1)
}
then I want to extract the elem of that hash with
a vector
> q <- c("some", "more", "not_there")
But why this failed?
> extracted <- x[[q]]
Error in x[[q]] : subscript out of bounds
we expect the output of 'extracted' to be
a vector as well. When the key is not present
to give "NA" in vector
- Gundala Viswanath
Jakarta - Indonesia
2015 Sep 23
10
[Bug 2471] New: "match exec" prepends "exec" to its command
...;, cmd);
This is a problem, because it assumes the user's shell supports a
particular command syntax, beyond just requiring that it support the
"$SHELL -c <command>" convention. For example, if your shell is fish
and you have e.g.:
match exec "getent passwd %u | grep -q NOT_THERE"
This doesn't work, because:
$ fish -c "getent passwd res | grep -q NOT_THERE" && echo match
$ fish -c "exec getent passwd res | grep -q NOT_THERE" && echo match
res:x:11500:11500::/home/res:/bin/bash
match
... and of course, the shell might n...