public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Simplistic bash-script to manage package.use
@ 2008-07-12 21:19 Mikko Husari
  2008-07-12 21:42 ` Gentoo User
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Mikko Husari @ 2008-07-12 21:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 658 bytes --]

greetings earthlings,

i did not found (nor did i look for long enough) any tools/scripts to 
easily manage package.use file, so i did my own. now i started to think 
that, if there really is not any, my creation would be sufficient 
(although possibly buggy) for most users who wish to have "easy" control 
over package.use.

yes, i know this is not the best place to "announce" but, this is not an 
real announcement, this is an query for an superior solution which would 
show my creation to be useless/dublicate/stupid. (if mine is 
useless/stupid it would be nice, so i would not have to maintain it and 
i also could use some real software).

-- husku

[-- Attachment #2: guse.sh --]
[-- Type: text/plain, Size: 3126 bytes --]

#!/bin/bash

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.


UF="package.use"
if [[ -z $1 ]]; then
	echo "guse.sh pkgspec [flag modifiers]"
	echo "  - list use-flags for package by leaving the modifiers out"
	echo "  - this little script fondles your package.use"
	echo "	- by using double-dash (--) you are doomed back to default"
	echo "example:"
	echo "   guse.sh kopete qq privacy -yahoo -msn jabber --highlight"
	echo
	exit
fi
[[ -n $1 ]] && ROWS=`grep $1 $UF` && HITS=`echo "${ROWS}"|wc -l`
[[ $HITS -gt 1 ]] && echo "Duplicates" && echo "$ROWS" && exit

# search from portage
[[ $HITS -lt 1 ]] && OLD=`emerge --nospinner -s ${1}|grep \*|awk '{print $2}'` \
&& HITS=`echo "${OLD}"|wc -l` && NEWATOM="yes"

if [[ $HITS -gt 1 ]]; then
	echo "All Candidates:"
	echo "${OLD}"
	exit
elif [[ $HITS -lt 1 ]]; then
	echo Package\ atom\ not\ found
	exit
else 
	if [[ -n $NEWATOM ]]; then
		if [[ -n $2 ]]; then
			for a; do
				NEW="$NEW $a"
			done
			echo new: ${NEW:0}
			echo ${NEW:0} >> $UF
		else
			equery uses $1
		fi
	else
		OLD="${ROWS}";
 		OLD_sed=`echo "${OLD}"|sed 's/\ /\\\ /g'`
		OLD_sed=`echo "${OLD_sed}"|sed 's/\\//\\\\\//g'`
		ORIG_sed=$OLD_sed
		if [[ -z $2 ]]; then
			equery uses $1
			echo Your\ custom\ Set:
			echo $OLD
			exit
		fi
		for a; do
			loops=$(( $loops+1 ));
			if [[ loops -gt 1 ]]; then
			if [[ -n $a ]]; then
				[[ `equery uses $1|grep ${a:1}|wc -l` -lt 1 ]] && echo Typo\:\ $a\ Does\ not\ exists && exit
				if [[ ${a:0:1} == "-" && $OLD =~ " "${a:1} ]]; then
					
					if [[ ${a:0:2} == "--" ]]; then
						# remove
						echo remove negative: ${a:1}
						OLD_sed=`echo "${OLD_sed}"|sed 's/ '"${a:1}"'/ /g'`
					else	
						# disable
						echo disable: ${a:1}
						OLD_sed=`echo "${OLD_sed}"|sed 's/'${a:1}'/'${a}'/g'`
					fi
					
				elif [[ ${a:0:1} != "-" && $OLD =~ " -"${a} ]]; then
					# enable
					echo enable: $a
					OLD_sed=`echo "${OLD_sed}"|sed 's/-'${a}'/'${a}'/g'`
					
				elif [[ $OLD =~ " ${a}" ]]; then
					echo keeping: $a
				else
					if [[ ${a:0:2} = "--" ]]; then
						# remove
						echo remove positive: ${a:2}
						OLD_sed=`echo "${OLD_sed}"|sed 's/ '${a:2}'/ /'`
					else
						OLD_sed="${OLD_sed}\\ $a"
						echo add: $a
					fi
				fi
			elif [[ -z $a ]]; then
				echo This is what you have:
				echo $OLD
				exit
			else
				NEW="$OLD_sed\\ $a"
				echo lisataan: $NEW
				OLD_sed=$NEW
			fi
			else
				echo ATOM: `echo $OLD|awk '{print $1}'`
			fi
		done
		[[ "$OLD_sed" != "$ORIG_sed" ]] && sed -i.bak 's/'"${ORIG_sed}"'/'"${OLD_sed}"'/' $UF
	fi
fi

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-12 21:19 [gentoo-user] Simplistic bash-script to manage package.use Mikko Husari
@ 2008-07-12 21:42 ` Gentoo User
  2008-07-12 22:01   ` Mikko Husari
  2008-07-13 11:29 ` Arttu V.
  2008-07-13 11:32 ` Neil Bothwick
  2 siblings, 1 reply; 15+ messages in thread
From: Gentoo User @ 2008-07-12 21:42 UTC (permalink / raw
  To: gentoo-user

Hi,

the question is: is it really necessary? If I want to add a new entry
into this file I just call echo "category/package myflags" >>
/etc/portage/package.use and if I want to edit them I just call my
favorite editor, use its search capabilities and change the line.
So I don't really see the benefit of a command line tool, since I
still need to write flags, package and everything and the tools I'm
using now (mostly echo, grep and vim) to do this are not very
complicated and most of the typing goes to the use flags and package
name anyway.


Just my opinion.


Best regards

Geralt


On 7/12/08, Mikko Husari <husku@husku.net> wrote:
> greetings earthlings,
>
>  i did not found (nor did i look for long enough) any tools/scripts to
> easily manage package.use file, so i did my own. now i started to think
> that, if there really is not any, my creation would be sufficient (although
> possibly buggy) for most users who wish to have "easy" control over
> package.use.
>
>  yes, i know this is not the best place to "announce" but, this is not an
> real announcement, this is an query for an superior solution which would
> show my creation to be useless/dublicate/stupid. (if mine is useless/stupid
> it would be nice, so i would not have to maintain it and i also could use
> some real software).
>
>  -- husku
>
>
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-12 21:42 ` Gentoo User
@ 2008-07-12 22:01   ` Mikko Husari
  2008-07-13 10:38     ` Gentoo User
  0 siblings, 1 reply; 15+ messages in thread
From: Mikko Husari @ 2008-07-12 22:01 UTC (permalink / raw
  To: gentoo-user

Gentoo User wrote:
> Hi,
>
> the question is: is it really necessary? If I want to add a new entry
> into this file I just call echo "category/package myflags" >>
> /etc/portage/package.use and if I want to edit them I just call my
> favorite editor, use its search capabilities and change the line.
> So I don't really see the benefit of a command line tool, since I
> still need to write flags, package and everything and the tools I'm
> using now (mostly echo, grep and vim) to do this are not very
> complicated and most of the typing goes to the use flags and package
> name anyway.
>
>
> Just my opinion.
>
>
> Best regards
>
> Geralt
>
>
> On 7/12/08, Mikko Husari <husku@husku.net> wrote:
>   
>> greetings earthlings,
>>
>>  i did not found (nor did i look for long enough) any tools/scripts to
>> easily manage package.use file, so i did my own. now i started to think
>> that, if there really is not any, my creation would be sufficient (although
>> possibly buggy) for most users who wish to have "easy" control over
>> package.use.
>>
>>  yes, i know this is not the best place to "announce" but, this is not an
>> real announcement, this is an query for an superior solution which would
>> show my creation to be useless/dublicate/stupid. (if mine is useless/stupid
>> it would be nice, so i would not have to maintain it and i also could use
>> some real software).
>>
>>  -- husku
>>
>>
>>     
well, i cant argue with you on that. although, i also used 
vim,grep,sed,echo to change my flags. still i felt i needes an easier 
way, thats why i wrote it and thats why i think this is "easier" than 
vim+handwork. basicly that script is only an interface to sed,echo,grep 
and equery.

did you try to use it? id bet i could get changes applied much more 
rapidly with that script than with vim or echo. (can not necessarily 
compete with echo if you are sure it is an new addition)
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-12 22:01   ` Mikko Husari
@ 2008-07-13 10:38     ` Gentoo User
  2008-07-13 10:48       ` Mikko Husari
  2008-07-13 16:07       ` Neil Bothwick
  0 siblings, 2 replies; 15+ messages in thread
From: Gentoo User @ 2008-07-13 10:38 UTC (permalink / raw
  To: gentoo-user

Hi,
I  don't want to make your work bad.
After thinking it over I think it is actually a useful script, because
it adds  a little bit more security to editing the package.use file
(I'm always fearing the day when I'm writing echo "stuff" >
/etc/portage/package.use").
But do you know that package.use can also be a directory which can
contain several files storing the use flags?



Geralt.

On 7/13/08, Mikko Husari <husku@husku.net> wrote:
> Gentoo User wrote:
>
> > Hi,
> >
> > the question is: is it really necessary? If I want to add a new entry
> > into this file I just call echo "category/package myflags" >>
> > /etc/portage/package.use and if I want to edit them I just call my
> > favorite editor, use its search capabilities and change the line.
> > So I don't really see the benefit of a command line tool, since I
> > still need to write flags, package and everything and the tools I'm
> > using now (mostly echo, grep and vim) to do this are not very
> > complicated and most of the typing goes to the use flags and package
> > name anyway.
> >
> >
> > Just my opinion.
> >
> >
> > Best regards
> >
> > Geralt
> >
> >
> > On 7/12/08, Mikko Husari <husku@husku.net> wrote:
> >
> >
> > > greetings earthlings,
> > >
> > >  i did not found (nor did i look for long enough) any tools/scripts to
> > > easily manage package.use file, so i did my own. now i started to think
> > > that, if there really is not any, my creation would be sufficient
> (although
> > > possibly buggy) for most users who wish to have "easy" control over
> > > package.use.
> > >
> > >  yes, i know this is not the best place to "announce" but, this is not
> an
> > > real announcement, this is an query for an superior solution which would
> > > show my creation to be useless/dublicate/stupid. (if mine is
> useless/stupid
> > > it would be nice, so i would not have to maintain it and i also could
> use
> > > some real software).
> > >
> > >  -- husku
> > >
> > >
> > >
> > >
> >
>  well, i cant argue with you on that. although, i also used
> vim,grep,sed,echo to change my flags. still i felt i needes an easier way,
> thats why i wrote it and thats why i think this is "easier" than
> vim+handwork. basicly that script is only an interface to sed,echo,grep and
> equery.
>
>  did you try to use it? id bet i could get changes applied much more rapidly
> with that script than with vim or echo. (can not necessarily compete with
> echo if you are sure it is an new addition)
>  --
>  gentoo-user@lists.gentoo.org mailing list
>
>
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 10:38     ` Gentoo User
@ 2008-07-13 10:48       ` Mikko Husari
  2008-07-13 15:19         ` Alan McKinnon
  2008-07-13 16:07       ` Neil Bothwick
  1 sibling, 1 reply; 15+ messages in thread
From: Mikko Husari @ 2008-07-13 10:48 UTC (permalink / raw
  To: gentoo-user

Gentoo User wrote:
> Hi,
> I  don't want to make your work bad.
> After thinking it over I think it is actually a useful script, because
> it adds  a little bit more security to editing the package.use file
> (I'm always fearing the day when I'm writing echo "stuff" >
> /etc/portage/package.use").
> But do you know that package.use can also be a directory which can
> contain several files storing the use flags?
>
>
>
> Geralt.
>
> On 7/13/08, Mikko Husari <husku@husku.net> wrote:
>   
>> Gentoo User wrote:
>>
>>     
>>> Hi,
>>>
>>> the question is: is it really necessary? If I want to add a new entry
>>> into this file I just call echo "category/package myflags" >>
>>> /etc/portage/package.use and if I want to edit them I just call my
>>> favorite editor, use its search capabilities and change the line.
>>> So I don't really see the benefit of a command line tool, since I
>>> still need to write flags, package and everything and the tools I'm
>>> using now (mostly echo, grep and vim) to do this are not very
>>> complicated and most of the typing goes to the use flags and package
>>> name anyway.
>>>
>>>
>>> Just my opinion.
>>>
>>>
>>> Best regards
>>>
>>> Geralt
>>>
>>>
>>> On 7/12/08, Mikko Husari <husku@husku.net> wrote:
>>>
>>>
>>>       
>>>> greetings earthlings,
>>>>
>>>>  i did not found (nor did i look for long enough) any tools/scripts to
>>>> easily manage package.use file, so i did my own. now i started to think
>>>> that, if there really is not any, my creation would be sufficient
>>>>         
>> (although
>>     
>>>> possibly buggy) for most users who wish to have "easy" control over
>>>> package.use.
>>>>
>>>>  yes, i know this is not the best place to "announce" but, this is not
>>>>         
>> an
>>     
>>>> real announcement, this is an query for an superior solution which would
>>>> show my creation to be useless/dublicate/stupid. (if mine is
>>>>         
>> useless/stupid
>>     
>>>> it would be nice, so i would not have to maintain it and i also could
>>>>         
>> use
>>     
>>>> some real software).
>>>>
>>>>  -- husku
>>>>
>>>>
>>>>
>>>>
>>>>         
>>  well, i cant argue with you on that. although, i also used
>> vim,grep,sed,echo to change my flags. still i felt i needes an easier way,
>> thats why i wrote it and thats why i think this is "easier" than
>> vim+handwork. basicly that script is only an interface to sed,echo,grep and
>> equery.
>>
>>  did you try to use it? id bet i could get changes applied much more rapidly
>> with that script than with vim or echo. (can not necessarily compete with
>> echo if you are sure it is an new addition)
>>  --
>>  gentoo-user@lists.gentoo.org mailing list
>>
>>
>>     
i did not know that, (also the script ignores make.conf ). how does that 
directory approach work, any documentation about it?

-- husku
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-12 21:19 [gentoo-user] Simplistic bash-script to manage package.use Mikko Husari
  2008-07-12 21:42 ` Gentoo User
@ 2008-07-13 11:29 ` Arttu V.
  2008-07-13 12:51   ` Mikko Husari
  2008-07-13 11:32 ` Neil Bothwick
  2 siblings, 1 reply; 15+ messages in thread
From: Arttu V. @ 2008-07-13 11:29 UTC (permalink / raw
  To: gentoo-user

On 7/13/08, Mikko Husari <husku@husku.net> wrote:
> i did not found (nor did i look for long enough) any tools/scripts to
> easily manage package.use file, so i did my own. now i started to think
> that, if there really is not any, my creation would be sufficient
> (although possibly buggy) for most users who wish to have "easy" control
> over package.use.

How does that compare to things like flagedit (available in portage)?

-- 
Arttu V.
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-12 21:19 [gentoo-user] Simplistic bash-script to manage package.use Mikko Husari
  2008-07-12 21:42 ` Gentoo User
  2008-07-13 11:29 ` Arttu V.
@ 2008-07-13 11:32 ` Neil Bothwick
  2008-07-13 12:50   ` Mikko Husari
  2 siblings, 1 reply; 15+ messages in thread
From: Neil Bothwick @ 2008-07-13 11:32 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 668 bytes --]

On Sun, 13 Jul 2008 00:19:56 +0300, Mikko Husari wrote:

> greetings earthlings,

What about the rest of us?

> i did not found (nor did i look for long enough) any tools/scripts to 
> easily manage package.use file,


% eix flagedit
[I] app-portage/flagedit
     Available versions:  0.0.5 0.0.7
     Installed versions:  0.0.7(19:47:47 01/11/07)
     Homepage:            http://damz.net/flagedit/
     Description:         CLI use flags and keyword editor, for system
                          wide or /etc/portage files

It works well, provided package.use and package.keywords are files.


-- 
Neil Bothwick

Old age comes at a bad time.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 11:32 ` Neil Bothwick
@ 2008-07-13 12:50   ` Mikko Husari
  2008-07-13 13:07     ` Neil Bothwick
  0 siblings, 1 reply; 15+ messages in thread
From: Mikko Husari @ 2008-07-13 12:50 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick wrote:
> On Sun, 13 Jul 2008 00:19:56 +0300, Mikko Husari wrote:
>
>   
>> greetings earthlings,
>>     
>
> What about the rest of us?
>
>   
>> i did not found (nor did i look for long enough) any tools/scripts to 
>> easily manage package.use file,
>>     
>
>
> % eix flagedit
> [I] app-portage/flagedit
>      Available versions:  0.0.5 0.0.7
>      Installed versions:  0.0.7(19:47:47 01/11/07)
>      Homepage:            http://damz.net/flagedit/
>      Description:         CLI use flags and keyword editor, for system
>                           wide or /etc/portage files
>
> It works well, provided package.use and package.keywords are files.
>
>
>   
thanks for pointing out better solution. it looks nice and has more 
features. it would be excellent if it could "guess" the pkg-name with 
'emerge -s' like mine does.

--husku
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 11:29 ` Arttu V.
@ 2008-07-13 12:51   ` Mikko Husari
  0 siblings, 0 replies; 15+ messages in thread
From: Mikko Husari @ 2008-07-13 12:51 UTC (permalink / raw
  To: gentoo-user

Arttu V. wrote:
> On 7/13/08, Mikko Husari <husku@husku.net> wrote:
>   
>> i did not found (nor did i look for long enough) any tools/scripts to
>> easily manage package.use file, so i did my own. now i started to think
>> that, if there really is not any, my creation would be sufficient
>> (although possibly buggy) for most users who wish to have "easy" control
>> over package.use.
>>     
>
> How does that compare to things like flagedit (available in portage)?
>
>   
well, flagedit is much better :)


--husku
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 12:50   ` Mikko Husari
@ 2008-07-13 13:07     ` Neil Bothwick
  2008-07-13 13:42       ` Mikko Husari
  0 siblings, 1 reply; 15+ messages in thread
From: Neil Bothwick @ 2008-07-13 13:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

On Sun, 13 Jul 2008 15:50:39 +0300, Mikko Husari wrote:

> thanks for pointing out better solution. it looks nice and has more 
> features. it would be excellent if it could "guess" the pkg-name with 
> 'emerge -s' like mine does.

How about a wrapper script that uses the guessing from your script then
passes the correct name to flagedit?


-- 
Neil Bothwick

"Bother," said Pooh, as Christopher Robin shut the washing machine door.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 13:07     ` Neil Bothwick
@ 2008-07-13 13:42       ` Mikko Husari
  0 siblings, 0 replies; 15+ messages in thread
From: Mikko Husari @ 2008-07-13 13:42 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick wrote:
> On Sun, 13 Jul 2008 15:50:39 +0300, Mikko Husari wrote:
>
>   
>> thanks for pointing out better solution. it looks nice and has more 
>> features. it would be excellent if it could "guess" the pkg-name with 
>> 'emerge -s' like mine does.
>>     
>
> How about a wrapper script that uses the guessing from your script then
> passes the correct name to flagedit?
>
>
>   
it would be so easy to implement the feature straight to flagedit, so it 
would not make sense to use a wrapper. well, i can live with just using 
my script but someone should make an feature request to flagedits 
maintainer, im too lazy to request it my self :)


--husku
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 10:48       ` Mikko Husari
@ 2008-07-13 15:19         ` Alan McKinnon
  0 siblings, 0 replies; 15+ messages in thread
From: Alan McKinnon @ 2008-07-13 15:19 UTC (permalink / raw
  To: gentoo-user

On Sunday 13 July 2008, Mikko Husari wrote:
> i did not know that, (also the script ignores make.conf ). how does
> that directory approach work, any documentation about it?

man 5 portage

see the section "/etc/portage/"

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 10:38     ` Gentoo User
  2008-07-13 10:48       ` Mikko Husari
@ 2008-07-13 16:07       ` Neil Bothwick
  2008-07-14  0:19         ` Gentoo User
  1 sibling, 1 reply; 15+ messages in thread
From: Neil Bothwick @ 2008-07-13 16:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 279 bytes --]

On Sun, 13 Jul 2008 12:38:07 +0200, Gentoo User wrote:

> (I'm always fearing the day when I'm writing echo "stuff" >
> /etc/portage/package.use").

Put "set -o noclobber" in your profile.


-- 
Neil Bothwick

We are from the planet Taglinis. Take us to your reader!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-13 16:07       ` Neil Bothwick
@ 2008-07-14  0:19         ` Gentoo User
  2008-07-14  0:21           ` Neil Bothwick
  0 siblings, 1 reply; 15+ messages in thread
From: Gentoo User @ 2008-07-14  0:19 UTC (permalink / raw
  To: gentoo-user

>  > (I'm always fearing the day when I'm writing echo "stuff" >
>  > /etc/portage/package.use").
>
>
> Put "set -o noclobber" in your profile.
Cool, thanks :-)
But is there a way to overwrite an existing file when this option is enabled?




Geralt
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Simplistic bash-script to manage package.use
  2008-07-14  0:19         ` Gentoo User
@ 2008-07-14  0:21           ` Neil Bothwick
  0 siblings, 0 replies; 15+ messages in thread
From: Neil Bothwick @ 2008-07-14  0:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 283 bytes --]

On Mon, 14 Jul 2008 02:19:51 +0200, Gentoo User wrote:

> > Put "set -o noclobber" in your profile.  
> Cool, thanks :-)
> But is there a way to overwrite an existing file when this option is
> enabled?

echo "stuff" >|file


-- 
Neil Bothwick

IBM - I Blame Microsoft

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-07-14  0:21 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-12 21:19 [gentoo-user] Simplistic bash-script to manage package.use Mikko Husari
2008-07-12 21:42 ` Gentoo User
2008-07-12 22:01   ` Mikko Husari
2008-07-13 10:38     ` Gentoo User
2008-07-13 10:48       ` Mikko Husari
2008-07-13 15:19         ` Alan McKinnon
2008-07-13 16:07       ` Neil Bothwick
2008-07-14  0:19         ` Gentoo User
2008-07-14  0:21           ` Neil Bothwick
2008-07-13 11:29 ` Arttu V.
2008-07-13 12:51   ` Mikko Husari
2008-07-13 11:32 ` Neil Bothwick
2008-07-13 12:50   ` Mikko Husari
2008-07-13 13:07     ` Neil Bothwick
2008-07-13 13:42       ` Mikko Husari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox