🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #16946

Re: su: trap clear 0: command not found

#16946
From: Ignacio Arenaza
Date: Sun, 05 Mar 2000 00:00
37 lines
1855 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Benjamin" == Benjamin Albi�ana Perez <benjamin@lamanonegra.localdomain> writes:

    Benjamin> Al hacer exit, me limpia la pantalla, que es lo que
    Benjamin> busco. Pero si a�ado esa l�nea al bash_profile de root:

    Benjamin> 'trap /usr/bin/clear 0'

    Benjamin> al hacer un su - me da este error:

    Benjamin> su: trap /usr/bin/clear 0: No existe el fichero o el
    Benjamin> directorio

No estaras a�adiendo las comillas simples tambien, �verdad? Porque yo
he probado ahora mismo a ponerlo tal cual en el .bash_profile de root
y al hacer 'su -' y su 'exit' correspondiente funciona estupendamente.

        # /bin/bash --version
        GNU bash, version 2.01.1(1)-release (i486-pc-linux-gnu)
        Copyright 1997 Free Software Foundation, Inc.

Saludos. I�aki.

- -- 
  Get PGP/GPG Keys at http://personales.jet.es/inaki.arenaza/pgpkey.html
  A proud member of GULA - http://gula.jet.es/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.4 and Gnu Privacy Guard

iD8DBQE4wtxXZXLnGT1HLgcRAjuyAKCaI71v2k8ULiyY518Ctu9fsvtBVwCfVujm
f55xA+0i47+2vuSbggWBnNY=
=1VYa
-----END PGP SIGNATURE-----
Technical Details
Message-ID: <87aekdhxnq.fsf@eb2ebu.ampr.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <slrn8c4gqk.m9.benjamin@lamanonegra.localdomain>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: f86c8,cbf6929658f10af3
X-Google-Attributes: gidf86c8,public
From: Ignacio Arenaza <inaki.arenaza@jet.es>
Subject: Re: su: trap clear 0: command not found
Date: 2000/03/05
Message-ID: <87aekdhxnq.fsf@eb2ebu.ampr.org>
X-Deja-AN: 593959111
Content-Transfer-Encoding: 8bit
References: <slrn8c4gqk.m9.benjamin@lamanonegra.localdomain>
Organization: Servidor NNTP de eb2ebu.ampr.org
Content-Type: text/plain; charset=iso-8859-1
User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.3
Mime-Version: 1.0
Newsgroups: es.comp.os.linux.programacion