Re: Bash function not working…

Johnny Rosenberg gurus.knugum at gmail.com
Tue Jan 8 17:07:08 UTC 2013


2013/1/8 Steve Flynn <anothermindbomb at gmail.com>:
> On 8 January 2013 16:57, Johnny Rosenberg <gurus.knugum at gmail.com> wrote:
>
>> Thanks for all replies. As many pointed out, replacing , with ","
>> didn't change anything. I will do some more tests to see if I can
>> figure out which pipe mess things up.
>> In the mean time, more replies are welcome, of course…
>
> Fire a "set -x" to switch on command line quoting.
>
> Then run the function.
>
> You should see exactly what the shell is going to execute, and
> hopefully spot what's going wrong.
>
> When you're sick of seeing your commands echo'd back to you, "set +x"
> to turn it off.
>
> --
> Steve
>
> When one person suffers from a delusion it is insanity. When many
> people suffer from a delusion it is called religion.

Thanks for the tip. I think I already found it though, but I have not
tested yet. I'll be back when I have. Just need to logout and then
login again. By the way, is there a faster way to load custom bash
functions than a logout-login? Can I just run the .bash-functions file
(after given it run permissions), for example?


Johnny Rosenberg




More information about the ubuntu-users mailing list