confused about the return inside of
a subshell. If so, it's a bug in bash that ksh gets right, so it
ought to be fixable.
ADVthanksANCE
Rick
--- example of strange behavior below ---
:~$ cat /tmp/testit
function strange {
for j in 0 1 2 3
do
AA=' 1
2'
echo $AA
read causing a
subshell to be created, and bash getting confused about the return
inside of a subshell. If so, it's a bug in bash that ksh gets
right, so it ought to be fixable.
I can't reproduce it:
$ cat strange.sh
function strange {
for j in 0 1 2 3
do
AA=' 1
2'
echo $AA
,
Not exactly, it's the pipeline that causes creation of the subshell.
and bash getting confused about the return inside of
a subshell.
It does not get confused; as you can see, the subshell properly returns.
If so, it's a bug in bash that ksh gets right, so it
ought to be fixable
if it has anything to do with while read causing a
subshell to be created, and bash getting confused about the return
inside of a subshell. If so, it's a bug in bash that ksh gets
right, so it ought to be fixable.
I can't reproduce it:
$ cat strange.sh
function strange {
for j in 0 1 2 3
do
Am 18:00 2002-12-04 +0100 hat Rénald CASAGRAUDE geschrieben:
On mercredi, déc 4, 2002, at 17:29 Europe/Paris, [EMAIL PROTECTED]
wrote:
Hello eric !
sachant que sur une debian on à ceci
bulgroz:~ ls -l /bin/sh
lrwxrwxrwx1 root root4 Oct 29 16:09 /bin/sh - bash
Non,
* Christian Marillat [EMAIL PROTECTED] [2002-12-04 17:53] :
[EMAIL PROTECTED] writes:
[...]
sachant que sur une debian on à ceci
bulgroz:~ ls -l /bin/sh
lrwxrwxrwx1 root root4 Oct 29 16:09 /bin/sh - bash
Pas nécessairement. Il suffit d'intaller ash pour voir que le
On Wed, 4 Dec 2002, Rénald CASAGRAUDE wrote:
On mardi, déc 3, 2002, at 11:37 Europe/Paris, Michelle Konzack wrote:
Hello !
#!/bin/bash
utilise /sbin/sh et ca marche...
^
/bin/sh plutôt :)
#!/bin/bash
devrait fonctionner !
sachant que sur une
[EMAIL PROTECTED] writes:
On Wed, 4 Dec 2002, Rénald CASAGRAUDE wrote:
On mardi, déc 3, 2002, at 11:37 Europe/Paris, Michelle Konzack wrote:
Hello !
#!/bin/bash
utilise /sbin/sh et ca marche...
^
/bin/sh plutôt :)
#!/bin/bash
devrait
On mercredi, déc 4, 2002, at 17:29 Europe/Paris, [EMAIL PROTECTED]
wrote:
Hello eric !
sachant que sur une debian on à ceci
bulgroz:~ ls -l /bin/sh
lrwxrwxrwx1 root root4 Oct 29 16:09 /bin/sh - bash
Non, justement, ce n'est pas systématique sur une Debian.
Essaye
On mercredi, déc 4, 2002, at 17:53 Europe/Paris, Christian Marillat
wrote:
Pas nécessairement. Il suffit d'intaller ash pour voir que le lien
passe
sur ash. Donc attention aux bashisms quand on écrit un script shell.
Arf trop tard !
Maudit temps :-)
R.
On Wed, 4 Dec 2002, Christian Marillat wrote:
sachant que sur une debian on à ceci
bulgroz:~ ls -l /bin/sh
lrwxrwxrwx1 root root4 Oct 29 16:09 /bin/sh - bash
Pas nécessairement. Il suffit d'intaller ash pour voir que le lien passe
sur ash. Donc attention aux
Bonjour,
Le mer 04/12/2002 à 17:29, [EMAIL PROTECTED] a écrit :
#!/bin/bash
utilise /bin/sh et ca marche...
sachant que sur une debian on à ceci
bulgroz:~ ls -l /bin/sh
lrwxrwxrwx1 root root4 Oct 29 16:09 /bin/sh - bash
Même avec ce lien, bash ne
Bonsoir
Même avec ce lien, bash ne réagit pas pareil s'il il est appellé sh (1).
Donc si son script contient des bashismes, il ne fonctionnera plus avec
un #!/bin/sh ...
avec l'option -B pour les braces (() non ? ) je crois qu'on frise le
parfait ...
Enfin reste que mon problème était un
Bonjour David,
Am 13:05 2002-12-02 +0100 hat [EMAIL PROTECTED] geschrieben:
Bonjour tout le monde,
J'ai installé une woody y a 2/3 semaines et après maintes problèmes de
config j'ai une machine qui fait à peu près ce que je veux, donc v'la t'y
pas que je commence à me faire mes p'tits scripts
Bonjour tout le monde,
J'ai installé une woody y a 2/3 semaines et après maintes problèmes de
config j'ai une machine qui fait à peu près ce que je veux, donc v'la t'y
pas que je commence à me faire mes p'tits scripts qui vont biens.
#!/bin/bash
truc
machin
...
Je me fais un p'tit chmod 755
On Mon, 2 Dec 2002 13:05:44 +0100
[EMAIL PROTECTED] wrote:
Bonjour tout le monde,
J'ai installé une woody y a 2/3 semaines et après maintes problèmes de
config j'ai une machine qui fait à peu près ce que je veux, donc v'la
t'y pas que je commence à me faire mes p'tits scripts qui vont
Excusez moi mais est - ce que vous avez vérifié vos droits utilisateurs
sur /bin/bash?? normalement si vous exécutez deja un shell cela devrait
etre fait... Mais je sais que j'ai déjà rencontré ce pb mais il y a bien
lgtps. Ne faut il pas mettre à la place de /bin/bash ? /bin/sh ?? juste
une
On Mon, Dec 02, 2002 at 01:05:44PM +0100, [EMAIL PROTECTED] wrote:
Bonjour tout le monde,
J'ai installé une woody y a 2/3 semaines et après maintes problèmes de
config j'ai une machine qui fait à peu près ce que je veux, donc v'la t'y
pas que je commence à me faire mes p'tits scripts qui
Bonjour,
la partition sur laquelle le fichier script se trouve est montée en
user ? C'est un problème qui m'est déjà arrivé.
mount :
/dev/hda10 on /home type ext3 (rw,noexec)
J'ai déjà eu le pb aussi ... je vais élever des chèvres dans le Larzac.
Merci et déolé pour le dérangement
David
On Fri, Dec 08, 2000 at 09:43:33PM +0100, Hue-Bond wrote:
Esto es una invitación para que experimentéis (poner 99
guiones, borrar algunos a mano, poner más, borrar la línea con
^U... cualquier cosa que se os ocurra) y, en caso de que se
confirme,
El domingo 10 de diciembre de 2000 a la(s) 13:31:43 +0100, Jordi Mallach
contaba:
A mi no me hace nada raro, aparentemente.
Mejor :^).
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
--
David Serrano [EMAIL PROTECTED] - Linux Registered User #87069
pgpYxqnUUrX6L.pgp
Pulsando Alt y, sin soltarla, tecleando un número en el
teclado, digamos, normal (no en el numérico), podemos repetir un
carácter un determinado número de veces. Por ejemplo:
pulsar alt45soltar alt$
Hace que aparezcan 45 dólares (llegaré a millonario?).
I'm using bash 2.0 from the base installation. I notices that if the line
that I type exceeds the wide of the screen, instead of going down to the
next line, it goes to the start of the same line, thus obliterating the
prompt and whatever I had typed.
This occurs in Xterm as well. Bash 1.4 and
I think this is a feature of Bash 2.0, not a bug. I don't know how to
fix it since I'm still in Bash 1.x.
E.-
BG Lim ([EMAIL PROTECTED]) wrote:
: I'm using bash 2.0 from the base installation. I notices that if the line
: that I type exceeds the wide of the screen, instead of going down to the
:
24 matches
Mail list logo