Examen Reda

2017-03-29 Thread asix1ub
Això es un test per pujar un article. Reda

Re: Is it normal for `bash -s foo` not to make 1=foo available from ~/.bashrc?

2017-03-29 Thread Greg Wooledge
On Wed, Mar 29, 2017 at 05:05:09PM +0200, Torka Noda wrote: > I have a script which opens the applications I want on all my > desks, including gnome-terminal with a few tabs. > > In these tabs, I want to change the current directory (I could > use gnome-terminal's "--working-directory=$HOME/foo",

Re: Is it normal for `bash -s foo` not to make 1=foo available from ~/.bashrc?

2017-03-29 Thread Torka Noda
On Wed, 29 Mar 2017 10:26:14 -0400 Greg Wooledge wrote: > On Wed, Mar 29, 2017 at 04:10:14PM +0200, Torka Noda wrote: > > Well, sorry for the confusion, I'll stop here. I think it's > > weird for Bash's positional parameters, and the whole > > argument list if modified with '-s', not to be access

Re: Is it normal for `bash -s foo` not to make 1=foo available from ~/.bashrc?

2017-03-29 Thread Torka Noda
On Tue, 28 Mar 2017 19:13:55 +0200 Torka Noda wrote: > On Mon, 27 Mar 2017 10:04:16 -0400 > Daniel Mills wrote: > > > > Because you want the positional parameters set with bash -s > > to take precedence over anything set in the startup files. > > Otherwise anything in .bashrc would simply overri

Re: Is it normal for `bash -s foo` not to make 1=foo available from ~/.bashrc?

2017-03-29 Thread Greg Wooledge
On Wed, Mar 29, 2017 at 04:10:14PM +0200, Torka Noda wrote: > Well, sorry for the confusion, I'll stop here. I think it's > weird for Bash's positional parameters, and the whole argument > list if modified with '-s', not to be accessible from > initialization files, but `env` does what I want relat

Re: Is it normal for `bash -s foo` not to make 1=foo available from ~/.bashrc?

2017-03-29 Thread Torka Noda
On Tue, 28 Mar 2017 16:43:17 -0400 Chet Ramey wrote: > > On 3/28/17 12:43 PM, Torka Noda wrote: > > > Actually, shouldn't `bash -s`, without any command fed to > > its stdin, exit immediately, anyway...? > > No. Why? It reads and executes commands from its standard > input, which is in most ca