Re: [ptxdist] [PATCH] ptxdist: Don't assume that we have a bashrc

2012-03-21 Thread Bernhard Walle
* Alexander Dahl  [2012-03-21 09:40]:
> Am 21.03.2012 07:17, schrieb Bernhard Walle:
> >> I'm using zsh, not bash, but still have ~/.bashrc … what does this code
> >> try to do in the first place and how does this affect users of other 
> >> shells?
> > 
> > It only avoids two error messages when running "ptxdist bash" when the
> > files are not present. You can also use bash and have no ~/.bashrc
> > although that might be seldom.
> 
> Okay, then let's rephrase this. From `ptxdist help` I got:
> 
>   bash  enter a ptxdist environment bash shell
>   bash  [args...]  execute  in ptxdist environment
> 
> What is this environment useful for or what advantages has `ptxdist
> bash` over my own shell?

Well, I sometimes use it for debugging. For example you have the
selected toolchain automatically in $PATH.


Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] ptxdist: Don't assume that we have a bashrc

2012-03-21 Thread Alexander Dahl
Hei hei,

Am 21.03.2012 07:17, schrieb Bernhard Walle:
>> I'm using zsh, not bash, but still have ~/.bashrc … what does this code
>> try to do in the first place and how does this affect users of other shells?
> 
> It only avoids two error messages when running "ptxdist bash" when the
> files are not present. You can also use bash and have no ~/.bashrc
> although that might be seldom.

Okay, then let's rephrase this. From `ptxdist help` I got:

  bash  enter a ptxdist environment bash shell
  bash  [args...]  execute  in ptxdist environment

What is this environment useful for or what advantages has `ptxdist
bash` over my own shell?

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***



signature.asc
Description: OpenPGP digital signature
-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] ptxdist: Don't assume that we have a bashrc

2012-03-20 Thread Bernhard Walle
Am 20.03.12 23:15, schrieb Alexander Dahl:
> 
> Am 20.03.2012 20:46, schrieb Bernhard Walle:
>> Usually there is one, but don't print an error if there is no one.
> 
> I'm using zsh, not bash, but still have ~/.bashrc … what does this code
> try to do in the first place and how does this affect users of other shells?

It only avoids two error messages when running "ptxdist bash" when the
files are not present. You can also use bash and have no ~/.bashrc
although that might be seldom.


Regards,
Bernhard

-- 
ptxdist mailing list
ptxdist@pengutronix.de


Re: [ptxdist] [PATCH] ptxdist: Don't assume that we have a bashrc

2012-03-20 Thread Alexander Dahl
Hei hei,

Am 20.03.2012 20:46, schrieb Bernhard Walle:
> Usually there is one, but don't print an error if there is no one.

I'm using zsh, not bash, but still have ~/.bashrc … what does this code
try to do in the first place and how does this affect users of other shells?

Greets
Alex

-- 
»With the first link, the chain is forged. The first speech censured,
the first thought forbidden, the first freedom denied, chains us all
irrevocably.« (Jean-Luc Picard, quoting Judge Aaron Satie)
*** GnuPG-FP: 02C8 A590 7FE5 CA5F 3601  D1D5 8FBA 7744 CC87 10D0 ***



signature.asc
Description: OpenPGP digital signature
-- 
ptxdist mailing list
ptxdist@pengutronix.de


[ptxdist] [PATCH] ptxdist: Don't assume that we have a bashrc

2012-03-20 Thread Bernhard Walle
Usually there is one, but don't print an error if there is no one.

Signed-off-by: Bernhard Walle 
---
 bin/ptxdist |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/ptxdist b/bin/ptxdist
index 440a7aa..37ab098 100755
--- a/bin/ptxdist
+++ b/bin/ptxdist
@@ -1656,8 +1656,8 @@ parse_second()
if [ ${#} -eq 0 ]; then
local bashrc="${PTXDIST_TEMPDIR}/bashrc"
cat > "${bashrc}" <