The script:
#/bin/bash
# testlink.sh
# must be run as root
file1="$1"
shift
mandir=/usr/local/share/man/man3/
cp "$file1" "$mandir"
cd "$mandir"
echo '$hash = '"$#"
while (( "$#" )); do
file2="$1"
ln "$file1" "$file2"
shift
done
Results:
>> sudo ./testlink.sh readfile.3 readtextfile.3
On Thu, Feb 18, 2016 at 11:06:37PM +0700, Robert Parker wrote:
> The script:
> #/bin/bash
> # testlink.sh
> # must be run as root
>
> file1="$1"
> shift
> mandir=/usr/local/share/man/man3/
> cp "$file1" "$mandir"
> cd "$mandir"
You MUST check the result of cd. If it fails but you continue on,
yo
On Thu, Feb 18, 2016 at 11:30 PM, Greg Wooledge wrote:
> On Thu, Feb 18, 2016 at 11:06:37PM +0700, Robert Parker wrote:
> > The script:
> > #/bin/bash
> > # testlink.sh
> > # must be run as root
> >
> > file1="$1"
> > shift
> > mandir=/usr/local/share/man/man3/
> > cp "$file1" "$mandir"
> > cd "$
On Thu, Feb 18, 2016 at 05:58:28PM +0100, baldu...@units.it wrote:
> > On Thu, Feb 18, 2016 at 11:06:37PM +0700, Robert Parker wrote:
> > > The script:
> > > #/bin/bash
> ^ missing ! here
>
> typo in the shebang?
Yes, nicely done. I missed that.
On Fri, Feb 19, 2016 at 12:22:20AM +0700, R
On Fri, Feb 19, 2016 at 12:45 AM, Greg Wooledge wrote:
> On Thu, Feb 18, 2016 at 05:58:28PM +0100, baldu...@units.it wrote:
> > > On Thu, Feb 18, 2016 at 11:06:37PM +0700, Robert Parker wrote:
> > > > The script:
> > > > #/bin/bash
> > ^ missing ! here
> >
> > typo in the shebang?
>
> Yes, n
Hello everybody,
I believe I have a relevant bug to report. My company uses bash extensively and
we would like to contribute!
The bug I found is related to the possibility of obtaining all keys of a
declarative array at once (${!ARRAY[@]} syntax). It seems that every time such
a call is done t
> On Thu, Feb 18, 2016 at 11:06:37PM +0700, Robert Parker wrote:
> > The script:
> > #/bin/bash
^ missing ! here
typo in the shebang?
> > # testlink.sh
> > # must be run as root
> >
> > file1="$1"
> > shift
> > mandir=/usr/local/share/man/man3/
> > cp "$file1" "$mandir"
> > cd "$mandir"
>
On 2/18/16 11:39 AM, Emilio PastorMira wrote:
> The bug I found is related to the possibility of obtaining all keys of a
> declarative array at once (${!ARRAY[@]} syntax). It seems that every time
> such a call is done there is memory allocation, which is NOT deallocated
> when the corresponding s
On 2/18/16 1:10 AM, konsolebox wrote:
> On Tue, Feb 16, 2016 at 4:25 AM, Chet Ramey wrote:
>> On 2/14/16 1:41 AM, konsolebox wrote:
>>> Hi Chet,
>>>
>>> Please consider adding a mirror of bash's git repo in github.com. It
>>> would be easier for many people in the community to contribute code
>>>
Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i586-pc-linux-gnu' -DCONF_
uname output: Linux debian 4.1.0 #1 SMP Sat Jul 11 10:34
10 matches
Mail list logo