Re: invoke tilde expansion on quoted string

2011-11-11 Thread Chris F.A. Johnson
On Fri, 11 Nov 2011, Peng Yu wrote: I know from the document that tilde expansion only works if the string is unquoted (see below) ~$ cd '~/..' -bash: cd: ~/..: No such file or directory ~$ cd ~/.. /Users$ I'm wondering if I already have a string variable, is there a bash native to do tilde ex

Re: Questions about commandline-args

2011-11-11 Thread Chris F.A. Johnson
On Sat, 12 Nov 2011, Christopher Roy Bratusek wrote: On Friday 11 November 2011 19:32:51 Chris F.A. Johnson wrote: On Fri, 11 Nov 2011, Christopher Roy Bratusek wrote: Hi list, I've got a question about commandline args, imagine: personal_function ab{c,d} personal_function will receive abc

Re: Questions about commandline-args

2011-11-11 Thread Christopher Roy Bratusek
On Friday 11 November 2011 19:32:51 Chris F.A. Johnson wrote: > On Fri, 11 Nov 2011, Christopher Roy Bratusek wrote: > > Hi list, > > > > I've got a question about commandline args, imagine: > > > > personal_function ab{c,d} > > > > personal_function will receive abc and abd. > > Is there a way

invoke tilde expansion on quoted string

2011-11-11 Thread Peng Yu
Hi, I know from the document that tilde expansion only works if the string is unquoted (see below) ~$ cd '~/..' -bash: cd: ~/..: No such file or directory ~$ cd ~/.. /Users$ I'm wondering if I already have a string variable, is there a bash native to do tilde expansion on it. var='~/..' cd $var

Re: Questions about commandline-args

2011-11-11 Thread Chris F.A. Johnson
On Fri, 11 Nov 2011, Christopher Roy Bratusek wrote: Hi list, I've got a question about commandline args, imagine: personal_function ab{c,d} personal_function will receive abc and abd. Is there a way to make it receive ab{c,d} instead (without chaning the arguement itself)? Quote it: per

Questions about commandline-args

2011-11-11 Thread Christopher Roy Bratusek
Hi list, I've got a question about commandline args, imagine: personal_function ab{c,d} personal_function will receive abc and abd. Is there a way to make it receive ab{c,d} instead (without chaning the arguement itself)? (The actual problem is not that personal_function can't handle the arg, b

Compile time bug with --enable-static-link option in configure

2011-11-11 Thread raphael . grapinet
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/local/share

Running executable on a remote/network machine

2011-11-11 Thread MD.Mahbubur Rahman
Hi All, I want to run a java jar file from my ubuntu machine by a shell script. The jar file is placed in a different ubuntu machine in the same network. How can I proceed? Please help. Br Mahbub -- View this message in context: http://old.nabble.com/Running-executable-on-a-remote-network-mach

Re: Customize the command resolution in bash?

2011-11-11 Thread Eric Blake
On 11/11/2011 03:23 PM, Peng Yu wrote: > Hi, > > bash by default searchs in paths specified in the environment variable > PATH (separated by ":"). I'm not aware if there is any cache mechanism > to save the run time (but even so, different terminals still can not > see the same cache, hence each t

Customize the command resolution in bash?

2011-11-11 Thread Peng Yu
Hi, bash by default searchs in paths specified in the environment variable PATH (separated by ":"). I'm not aware if there is any cache mechanism to save the run time (but even so, different terminals still can not see the same cache, hence each terminal has the overhead to create the cache). When

"implicit" unset of a read-only function unsets the functions

2011-11-11 Thread jens . schmidt35
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: cc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/sapmnt/oraicall/home/tools/bash

Re: Encrypted bashrc?

2011-11-11 Thread Mike Frysinger
On Friday 11 November 2011 00:48:59 Clark J. Wang wrote: > In my company all the people share a few of Solaris servers which use NIS > to manage user accounts. The bad thing is that some servers' root passwords > are well known so anybody can easily su to my account to access my files. > To protect

Re: Encrypted bashrc?

2011-11-11 Thread Greg Wooledge
> > On Fri, Nov 11, 2011 at 01:48:59PM +0800, Clark J. Wang wrote: > > > In my company all the people share a few of Solaris servers which use > > > NIS to manage user accounts. The bad thing is that some servers' root > > > passwords are well known so anybody can easily su to my account to > > > a

Re: Encrypted bashrc?

2011-11-11 Thread William Park
On Fri, Nov 11, 2011 at 04:35:32PM +0800, Clark J. Wang wrote: > On Fri, Nov 11, 2011 at 2:25 PM, William Park wrote: > > > On Fri, Nov 11, 2011 at 01:48:59PM +0800, Clark J. Wang wrote: > > > In my company all the people share a few of Solaris servers which use > > > NIS to manage user accounts.

Re: Encrypted bashrc?

2011-11-11 Thread Clark J. Wang
On Fri, Nov 11, 2011 at 2:25 PM, William Park wrote: > On Fri, Nov 11, 2011 at 01:48:59PM +0800, Clark J. Wang wrote: > > In my company all the people share a few of Solaris servers which use > > NIS to manage user accounts. The bad thing is that some servers' root > > passwords are well known so