Displaying 5 results from an estimated 5 matches for "noglob".
2023 Aug 11
1
Bug in dhcp-dyndns.sh script, A_REC always singleton array
Hello
I was directed to discuss this issue here. As I understand the issue with using the unquoted variable is that it expand globs unless noglob is set. E.g.
root at dy3:/# test="b*"
root at dy3:/# a=($test)
root at dy3:/# echo ${a[0]}
bin
It does seem a bit hypothetical that the output of sambatool dns query ... for an A record should contain a glob, but for the sake of robustness it might still be a good idea to find a better...
2023 Aug 11
1
Bug in dhcp-dyndns.sh script, A_REC always singleton array
On Fri, 11 Aug 2023 14:03:01 +0200
Kasper Brandt via samba <samba at lists.samba.org> wrote:
> Hello
> I was directed to discuss this issue here. As I understand the issue
> with using the unquoted variable is that it expand globs unless
> noglob is set. E.g.
>
> root at dy3:/# test="b*"
> root at dy3:/# a=($test)
> root at dy3:/# echo ${a[0]}
> bin
>
> It does seem a bit hypothetical that the output of sambatool dns
> query ... for an A record should contain a glob, but for the sake of
> robustness it...
2023 Aug 11
1
Bug in dhcp-dyndns.sh script, A_REC always singleton array
...rote:
> On Fri, 11 Aug 2023 14:03:01 +0200
> Kasper Brandt via samba <samba at lists.samba.org> wrote:
>
> > Hello
> > I was directed to discuss this issue here. As I understand the issue
> > with using the unquoted variable is that it expand globs unless
> > noglob is set. E.g.
> >
> > root at dy3:/# test="b*"
> > root at dy3:/# a=($test)
> > root at dy3:/# echo ${a[0]}
> > bin
> >
> > It does seem a bit hypothetical that the output of sambatool dns
> > query ... for an A record should contain a glob...
2006 Aug 31
2
file-attr-restore and dollar signs
Hi All,
I've been using the great file-attr-restore script with rsync to get around
problems with uid's on a portable hard drive... It's the perfect solution
for me.
(for those that haven't seen it,you can get it here:
http://samba.org/ftp/unpacked/rsync/support/file-attr-restore
)
Anyway, I found a small bug in the script. file-attr-restore fails for file
names with dollar
2012 Aug 15
5
stupid bash question
the relevant snippet is...
NAME="*.mov"
cd $IN
if test -n "$(find . -maxdepth 1 -name $NAME -print -quit)"
and if there is one file in this directory - ie test.mov, this works fine
but if there are two (or more) files in this directory - test.mov, test2.mov
then I get an error...
find: paths must precede expression
So my code is evidently wrong. I just want a test for 1 or