[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: bash not using pipes or /tmp @ boot?

From: Linda Walsh
Subject: Fwd: bash not using pipes or /tmp @ boot?
Date: Mon, 06 Oct 2014 15:03:24 -0700
User-agent: Thunderbird

Not sure how but this went off into space, sorta...

Greg Wooledge wrote:
On Mon, Oct 06, 2014 at 12:14:57PM -0700, Linda Walsh wrote:
   done <<<"$(get_net_IFnames_hwaddrs)"

Where am I using a HERE doc?

<<< and << both create temporary files.

        Yeah... where?

assign_netif_names=/etc/init.d/boot.assign_netif_names start
/etc/init.d/boot.assign_netif_names#208(read_actuals)> typeset -p act_hw2if
declare -A act_hw2if='()'
/etc/init.d/boot.assign_netif_names#209(read_actuals)> typeset -p act_if2hw
declare -A act_if2hw='()'
/etc/init.d/boot.assign_netif_names#210(read_actuals)> du -s /tmp /var/tmp
27776 /tmp
13156 /var/tmp
/etc/init.d/boot.assign_netif_names#211(read_actuals)> date +%Y%m%d.%H%M
/etc/init.d/boot.assign_netif_names#211(read_actuals)> touch 
/etc/init.d/boot.assign_netif_names#212(read_actuals)> ls -l 
-rw-r--r-- 1 root root 0 Oct  6 14:18 /tmp/boot-20141006.1418

^^^ tmp is writeable.  (so is var/tmp)

The output: (6 lines...)
/etc/init.d/boot.assign_netif_names#204(read_actuals)> get_net_IFnames_hwaddrs
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth0 
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth1 
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth2 
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth3 
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth4 
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth5 
/etc/init.d/boot.assign_netif_names: line 204: cannot create temp file for here-document: No such file or directory

Maybe if bash didn't create tmp files in non-standard locations,
this never would have been an issue (or just use pipes)..

reply via email to

[Prev in Thread] Current Thread [Next in Thread]