Hi Domingo,
The biggest benefit is that it is just plain easier than managing a
directory of symbolic links on your own. I am extremely lazy.
Here is an example use case. At the end of a work day, I like to bookmark
the folder I am working in on my cluster with
to -b work
The next day, I can co
The only thing left here is that we can't have error control like when we
are to create generally shared library scripts e.g.:
function lib_something {
declare -n VAR=$1 &>/devnull || { # error message is not suppressed
: can_t go here if referred variable's name is invalid
ret
On 2013-04-04 21:05, Domingo Ignacio Galdos wrote:
> Hn, I use a similar tool called ln
>
> In all seriousness what value does or could a tool like this add above ln?
>
> ln -s ~/some/long/path ~/bookmark
> cd ~/bookmark
> cd ~/bookmark/nested/tab/completion
> rm ~/bookmark
>
> Sorry I don't mean t
Hn, I use a similar tool called ln
In all seriousness what value does or could a tool like this add above ln?
ln -s ~/some/long/path ~/bookmark
cd ~/bookmark
cd ~/bookmark/nested/tab/completion
rm ~/bookmark
Sorry I don't mean that in a snarly way I am curious if you can come up or
have with any
On Thu, Apr 04, 2013 at 10:56:35AM -0700, Andy Valencia wrote:
> Description:
> If one has a file "data.txt" and a shell script "x", it used to
> be possible to run this with "sh x dat" and have the file argument
> completed to "data.txt". As of Debian Wheezy update completion
>
---
Configuration Information [Automatically generated, do not change]:
Machine: i486
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i486'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i486-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/local
Hi,
Ubuntu 12.10, Bash 4.2.37
With the following inputrc ([Ctrl-RightArrow] mapped to menu-complete):
set show-all-if-ambiguous on
"\e[1;5C": menu-complete
Actual Behaviour
# Type 'ls d'
$ ls d
# Press key
$ ls d
desktop/ document/ dropbox/
$ ls d
# Press [C
On Thursday 04 April 2013 10:20:50 Chet Ramey wrote:
> On 4/4/13 12:34 AM, Mike Frysinger wrote:
> >>> would it be possible to enable a mode where you had to explicitly
> >>> `declare +r` the var ? being able to "simply" do `local FOO` allows
> >>> accidental overriding in sub funcs where the writ
On 04/04/2013 07:34 AM, Greg Wooledge wrote:
> # Sanitize user before feeding it to eval.
> # You must adjust this code based on what characters are legal in your
> # system's usernames. If your system allows shell metacharacters in
> # usernames, you are screwed. Just give up now
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 4/4/13 12:34 AM, Mike Frysinger wrote:
>> Yes, this has come up before. It's one reason to keep the compromise in
>> place. But is FOO being readonly in the function where it's declared and
>> not being able to unset it enough rationale to contin
On 01/02/2013 06:27 PM, Mike Frysinger wrote:
that ship has already sailed
Sorry for late response, but do you have some link or something? I would
like to track it.
RR
On Thu, Apr 04, 2013 at 09:17:00PM +0800, Chris Down wrote:
> Perhaps my reply here[1] can help out. Only looked briefly, but it seems it
> could at least eliminate the calls to eval (although it doesn't support some
> more rare tilde expansions).
>
> Chris
>
> 1: http://lists.gnu.org/archive/htm
On Thu, Apr 4, 2013 at 9:21 PM, Greg Wooledge wrote:
> imadev:~$ stuffit() { declare -n array="$1"; array[thing]=foobar; }
Checked my test script and I actually added -A to declare in the process
sorry. It's working now thanks.
Ross
On Thu, Apr 04, 2013 at 09:11:49PM +0800, konsolebox wrote:
> On second thought I think we still need the function since for declare -n:
>
> a) Reference variable could not be an array.
I'm not sure what you mean. But namerefs may point to arrays or
associative arrays in the caller's context.
A
On 2013-04-04 07:11, Eric Blake wrote:
> Given that the topic of tilde-completion has recently come up (again), I
> wanted to point out:
Perhaps my reply here[1] can help out. Only looked briefly, but it seems it
could at least eliminate the calls to eval (although it doesn't support some
more rar
On Thu, Apr 4, 2013 at 8:51 PM, konsolebox wrote:
> Another "feature" of this kind of construct is that you can put the name
>> of the variable-to-be-assigned into another variable:
>>
>> ptr=some_variable
>> setvalue "$ptr" "$foo"
>>
>> Which may be a good thing or a bad thing, but either way it
On 11/14/2011 07:23 AM, Freddy Vulto wrote:
> This is used in the bash-completion package:
Given that the topic of tilde-completion has recently come up (again), I
wanted to point out:
>
> ---8<---
>
> # Expand variable starting wi
>
> Another "feature" of this kind of construct is that you can put the name
> of the variable-to-be-assigned into another variable:
>
> ptr=some_variable
> setvalue "$ptr" "$foo"
>
> Which may be a good thing or a bad thing, but either way it's definitely
> a thing that someone will (ab)use if it'
On Thu, Apr 04, 2013 at 02:26:34AM -0500, Dan Douglas wrote:
> > On Wed, Feb 6, 2013 at 11:30 AM, konsolebox wrote:
> > > Hi. I was wondering if we could add a builtin where we could use it as an
> > > alternative for assigning values to a parameter. And thought of a builtin
> > > name called setv
On Thu, Apr 4, 2013 at 4:27 AM, Chris Down wrote:
> Hmm, that's interesting and potentially desirable (I think this is the
first
> time I've said that on this list!).
It gets downright dangerous once you realize you can use the -p option to
do things like
$ vim $(to -p foo/bar.cpp)
I've done a c
On Thu, Apr 4, 2013 at 3:26 PM, Dan Douglas wrote:
> On Wednesday, April 03, 2013 11:53:48 PM konsolebox wrote:
> > Hi. I made a post on this before but I haven't got a reply. I actually
> want
> > to know what people think about the idea as I actually find a command
> like
> > this really helpfu
-- Forwarded message --
From: Mara Kim
Date: Thu, Apr 4, 2013 at 4:34 AM
Subject: Re: to - Bookmark file system locations in bash on POSIX-like
systems
To: Pierre Gaston
Hi Pierre,
I read it, but maybe I missed something. There didn't seem to be much info.
I'm not really a fa
Hi Mara,
On 2013-04-04 03:58, Mara Kim wrote:
> What is do you mean specifically by function vs [? Do you mean parens? Is
> function a bash-ism?
function is a bashism, yes. You can just omit it and your function declarations
magically become POSIX.
> I am really only enthusiastic about the int
On Thu, Apr 4, 2013 at 11:58 AM, Mara Kim wrote:
> Hi Chris!
>
> Actually, this is great! Style critique, plus runtime analysis. Am I
> dreaming? :D
>
> I see your point regarding the use of variables to hold commands. Using
> PATH is a much better method of handling that functionality. And w
Hi Chris!
Actually, this is great! Style critique, plus runtime analysis. Am I
dreaming? :D
I see your point regarding the use of variables to hold commands. Using
PATH is a much better method of handling that functionality. And with the
magic of vim and git *POOF* it's gone...
What is do
Hi Mara,
On 2013-04-03 17:08, Mara Kim wrote:
> I thought you guys might enjoy this simple tool I wrote. It's under GPL so
> use it, hack it, fork it, ignore it, etc.
I'm sorry that the first reply has to be criticism, but since you posted it on a
mailing list, I guess you're looking for feedbac
On Wednesday, April 03, 2013 11:53:48 PM konsolebox wrote:
> Hi. I made a post on this before but I haven't got a reply. I actually want
> to know what people think about the idea as I actually find a command like
> this really helpful. Anyone please?
>
> On Wed, Feb 6, 2013 at 11:30 AM, konsolebo
Hi bash devs!
I thought you guys might enjoy this simple tool I wrote. It's under GPL so
use it, hack it, fork it, ignore it, etc.
to - Bookmark file system locations in bash (and zsh!) on POSIX-like systems
https://github.com/resultsreturned/to
Also, apologies if this is not the proper chann
Hi. I made a post on this before but I haven't got a reply. I actually want
to know what people think about the idea as I actually find a command like
this really helpful. Anyone please?
On Wed, Feb 6, 2013 at 11:30 AM, konsolebox wrote:
> Hi. I was wondering if we could add a builtin where we c
29 matches
Mail list logo