Laurent Bercot writes:
> Your next door "echo" command will do just that (or s6-echo
> if you risk having dashes and want reliable behaviour in all cases).
That brings me to another question: is there a collection of
more execline utilities somewhere? I suspect the standard
GNU coreutils are
That brings me to another question: is there a collection of
more execline utilities somewhere? I suspect the standard
GNU coreutils are not quite to your liking in a lot of cases.
The execline package has all the execline-specific utilities you
need to perform execline scripting (although if
So I’d like to have an ifthenelse and return the
same envvar from both branches.
https://www.mail-archive.com/skaware@list.skarnet.org/msg00311.html
--
Laurent
Sorry for my spam of mails, I want to separate my questions
by topic so they will be searchable.
I haven’t found a way to print a file to stdout with either
execline nor s6-portable-utils. The `s6-cat` utility only
echoes stuff that is already coming from stdin,
and unlike the shell, execline
I haven’t found a way to print a file to stdout with either
execline nor s6-portable-utils. The `s6-cat` utility only
echoes stuff that is already coming from stdin,
and unlike the shell, execline doesn’t have `<`.
https://skarnet.org/software/execline/redirfd.html
"redirfd -r 0 $file
I have the following logic:
If file in variable f is a symlink, resolve it
and use the result as link target.
Otherwise, use the result as link target directly.
So I’d like to have an ifthenelse and return the
same envvar from both branches. But this is the
best I can do:
ifte {
backtick res {
When I have a glob like:
elglob -0 fs somedir/*
if { test -n $fs }
ln -t otherdir $fs
the test will fail if there’s more than one file in `somedir`.
Is there a way to put a split variable into one variable again?
It feels kind of clumsy to use elglob, especially because of
the default verbatim
elglob -0 fs somedir/*
if { test -n $fs }
ln -t otherdir $fs
the test will fail if there’s more than one file in `somedir`.
Is there a way to put a split variable into one variable again?
Your next door "echo" command will do just that (or s6-echo
if you risk having dashes and want reliable