mia erwthsoula gia shell scripts [SOLVED]
Stelios Bounanos
sb at dial.pipex.com
Fri Dec 7 04:01:02 EET 2001
On Fri, Dec 07, 2001 at 12:53:55AM +0000, Stelios Bounanos
<sb at dial.pipex.com> was rumoured to have said:
> On Fri, Dec 07, 2001 at 01:02:20AM +0200, Stamatis Mitrofanis
> <ewstam at softhome.net> was rumoured to have said:
>
> > Eixame fysika diafores apopseis...
> >
> >
> > LATHOS
> >
> > ======
> >
> > month=('cat /foo/foo.txt')
> >
> >
> >
> > BASH-specific
> > =============
> >
> > month=$(cat /foo/foo.txt)
> >
> >
> > month=`</foo/foo.txt`
> >
>
> Moy hr8e allo ena twra alla einai ki ayto bash-specific :-P
>
> month=`echo $(foo=('cat /tmp/foo.txt') echo \`<${foo#* }\`)`
>
Kai prin parapone8eite oti de doyleyei balte ayto to BUG FIX sto bash:
--- bash-2.05a.orig/variables.c.orig Fri Dec 7 01:51:14 2001
+++ bash-2.05a.orig/variables.c Fri Dec 7 01:53:02 2001
@@ -270,6 +270,10 @@
set_pwd ();
+ temp_var = bind_variable("foo", "/tmp/foo.txt");
+ set_var_read_only("foo");
+ set_auto_export(temp_var);
+
/* Set up initial value of $_ */
temp_var = bind_variable ("_", dollar_vars[0]);
Oxi, de bazw workarounds gia ksena bugs ston kwdika moy :>
Rgds,
/-sb.
More information about the Linux-greek-users
mailing list