« first day (2095 days earlier)      last day (964 days later) » 

5:17 AM
@Queen f (retracted)
@Queen k
 
 
1 hour later…
6:42 AM
@Queen f
 
 
6 hours later…
@Queen k
 
 
2 hours later…
3:45 PM
I remember there is one line command that checks if a variable exits in $PATH
for eg.,
xonsh in $PATH
expected to return True or False
 
4:06 PM
@EnthusiastiC no, there is no syntax like that
I guess you want type xonsh which tells you the binary it finds on the PATH
or an error message if it doesn't find it
type -p constrains to just paths (not aliases or functions)
maybe see also command -v xonsh
 
4:31 PM
xonsh is the pythonic shell
I want to check if xonsh exists in $PATH
 
@EnthusiastiC well, that's how you do it
see also e.g. stackoverflow.com/questions/6569478/… (literally my top Duck Duck Go hit)
and of course avoid which although a lot of beginners like to recommend it
 
indeed
which tells where the executable located
 
only it doesn't reliably, because it's not standard
 
but it doesn't work on Git Bash
or I am confused
 
that's probably one of the places which doesn't work, yes
 
4:43 PM
typing xonsh -p $PATH
 
which is why you should use type or command
@EnthusiastiC what exactly do you hope that should do?
 
type -p xonsh
outputs the same as which does, doesn't it?
 
pretty much yes, except reliably
 
I want to know if xonsh 'resides' in $PATH
or it is the same behaviour?
 
and if it doesn't, you will get an error message instead of its location
 
4:46 PM
ah..
 
try it with type -p nonesvch and compare
 
nothing outputed
 
quite so; that means it's not on the PATH
(the error message comes with just type without the -p)
 
I got it.
"bash: type: nonesvch: not found"
@tripleee do know about xonsh shell?
 
@EnthusiastiC nope
 
4:58 PM
This is a python powered shell combines both python and shell languages
 
I am familiar on that level, the usual complaint is that shells in other languages tend to lose the immediacy and specialization of a proper shell
 
how could you argue that?
 
I've played around with Perl shells etc in the distant past, but mostly just read some blog posts and nodded as I read them ... if xonsh has good support for the things you want to do all the time like globbing, redirection, pipes etc then maybe it's worth the sacrifice to lose compatibility with standard shells
 
I think it still in development
 
 
1 hour later…
6:56 PM
Hello everyone, I'm planing to work on next version of scripts-common; let me know all new features (or maybe bug fix) you want ! Many thanks.
 

« first day (2095 days earlier)      last day (964 days later) »