Provlima alias sto bash

Stelios Bounanos sb at dial.pipex.com
Thu Apr 12 07:31:01 EEST 2001


In message <9b378m$s2d$1 at foo.grnet.gr>,
    Spyros Giannopulos <gispyros at x-treme.gr> wrote:

> Pos ginetai na petixo alias sto bash antisoixo tis alias sto csh pou
> akolouthei
> alias ls 'ls \!*; echo End of ls'
> Exo prospathisei para polles idees alla kamia den exei piasei.
> P.x.
> alias ls='ls \!#:*; echo End of ls'
> mou vgazei oti den yparxei to arxeio !#:*
> Den mporo na katalavo giati eno sto cshell i "metafrasi" tou alias
> doulevei mia xara kai leitourgei to !* sto bash den to metafrazei kai
> to pernaei (apo oti katalaveno logo ' ' )  opos einai. An dokimaso dipla " "
> kai kliso (gia na min ermineutei amesa) to \!#:* me apla ' ' palei exei ta
> idia
> apotelesmata. Exo prospathisei na peraso to epimaxo symeio me eisagogika
> ta opoia proigountan me \ oste na min metafrastei i erminia amesa apo to
> kelifos
> alla mono stin ektelesi alla pali tipota. To periergo einai oti an tin
> grapso tin
> entoli me to xeri kateutheian sto prompt leitourgei. Ti soi allagi kanei to
> bash me tin
> alias kai den leitourgei; As mou dosei kapios ta fota tou giati exo
> pragmatika agxothei
> me autin tin fenomenika geleia entoli.
> 
> 

Mia idea mono (pote den ta phgaina kala me ta *csh): mhpws ftaiei oti to csh
antika8ista toys glob metacharacters me "" an den kanoyn match tipota,
enw to bash toys pernaei opws einai? Toylaxiston edw (bash 2.03.0) to
alias ls='ls \!#:*; echo End of ls'
fainetai na kanei ayto poy les, an dwsw prwta ena ``shopt -s nullglob''.

HTH!

Rgds,
/-sb.

-- 

Stelios Bounanos <sb at dial.pipex.com>
  ..............7500000 years later:
  The Ultimate Answer is 42.
  (next mail will give the Question)



More information about the Linux-greek-users mailing list